From 93446769602f4f914955d069b4d4a86bfdfbe532 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 6 Jul 2024 10:45:57 -0700 Subject: [PATCH] macos: fix iOS build --- macos/Sources/Ghostty/Ghostty.App.swift | 1 + macos/Sources/Ghostty/SurfaceView_UIKit.swift | 3 +++ 2 files changed, 4 insertions(+) diff --git a/macos/Sources/Ghostty/Ghostty.App.swift b/macos/Sources/Ghostty/Ghostty.App.swift index 4fc111400..97a4aa0da 100644 --- a/macos/Sources/Ghostty/Ghostty.App.swift +++ b/macos/Sources/Ghostty/Ghostty.App.swift @@ -291,6 +291,7 @@ extension Ghostty { static func setCellSize(_ userdata: UnsafeMutableRawPointer?, width: UInt32, height: UInt32) {} static func showUserNotification(_ userdata: UnsafeMutableRawPointer?, title: UnsafePointer?, body: UnsafePointer?) {} static func updateRendererHealth(_ userdata: UnsafeMutableRawPointer?, health: ghostty_renderer_health_e) {} + static func mouseOverLink(_ userdata: UnsafeMutableRawPointer?, uri: UnsafePointer?, len: Int) {} #endif #if os(macOS) diff --git a/macos/Sources/Ghostty/SurfaceView_UIKit.swift b/macos/Sources/Ghostty/SurfaceView_UIKit.swift index bda16ced8..87a9afa53 100644 --- a/macos/Sources/Ghostty/SurfaceView_UIKit.swift +++ b/macos/Sources/Ghostty/SurfaceView_UIKit.swift @@ -25,6 +25,9 @@ extension Ghostty { // Any error while initializing the surface. @Published var error: Error? = nil + // The hovered URL + @Published var hoverUrl: String? = nil + private(set) var surface: ghostty_surface_t? init(_ app: ghostty_app_t, baseConfig: SurfaceConfiguration? = nil, uuid: UUID? = nil) {