macos: fix iOS build

This commit is contained in:
Mitchell Hashimoto
2024-07-06 10:45:57 -07:00
parent 36648ae397
commit 9344676960
2 changed files with 4 additions and 0 deletions

View File

@ -291,6 +291,7 @@ extension Ghostty {
static func setCellSize(_ userdata: UnsafeMutableRawPointer?, width: UInt32, height: UInt32) {} static func setCellSize(_ userdata: UnsafeMutableRawPointer?, width: UInt32, height: UInt32) {}
static func showUserNotification(_ userdata: UnsafeMutableRawPointer?, title: UnsafePointer<CChar>?, body: UnsafePointer<CChar>?) {} static func showUserNotification(_ userdata: UnsafeMutableRawPointer?, title: UnsafePointer<CChar>?, body: UnsafePointer<CChar>?) {}
static func updateRendererHealth(_ userdata: UnsafeMutableRawPointer?, health: ghostty_renderer_health_e) {} static func updateRendererHealth(_ userdata: UnsafeMutableRawPointer?, health: ghostty_renderer_health_e) {}
static func mouseOverLink(_ userdata: UnsafeMutableRawPointer?, uri: UnsafePointer<CChar>?, len: Int) {}
#endif #endif
#if os(macOS) #if os(macOS)

View File

@ -25,6 +25,9 @@ extension Ghostty {
// Any error while initializing the surface. // Any error while initializing the surface.
@Published var error: Error? = nil @Published var error: Error? = nil
// The hovered URL
@Published var hoverUrl: String? = nil
private(set) var surface: ghostty_surface_t? private(set) var surface: ghostty_surface_t?
init(_ app: ghostty_app_t, baseConfig: SurfaceConfiguration? = nil, uuid: UUID? = nil) { init(_ app: ghostty_app_t, baseConfig: SurfaceConfiguration? = nil, uuid: UUID? = nil) {