macos: fix uikit build

pull/9945/head
Mitchell Hashimoto 2025-12-17 10:25:59 -08:00
parent 829dd1b9b2
commit 842583b628
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
2 changed files with 5 additions and 2 deletions

View File

@ -46,6 +46,9 @@ extension Ghostty {
/// True when the surface is in readonly mode.
@Published private(set) var readonly: Bool = false
/// True when the surface should show a highlight effect (e.g., when presented via goto_split).
@Published private(set) var highlighted: Bool = false
// Returns sizing information for the surface. This is the raw C
// structure because I'm lazy.

View File

@ -7,7 +7,7 @@ extension String {
return self.prefix(maxLength) + trailing
}
#if canImport(AppKit)
#if canImport(AppKit)
func temporaryFile(_ filename: String = "temp") -> URL {
let url = FileManager.default.temporaryDirectory
.appendingPathComponent(filename)
@ -16,7 +16,6 @@ extension String {
try? string.write(to: url, atomically: true, encoding: .utf8)
return url
}
#endif
/// Returns the path with the home directory abbreviated as ~.
var abbreviatedPath: String {
@ -26,4 +25,5 @@ extension String {
}
return self
}
#endif
}