macos: fix uikit build
parent
829dd1b9b2
commit
842583b628
|
|
@ -47,6 +47,9 @@ extension Ghostty {
|
||||||
/// True when the surface is in readonly mode.
|
/// True when the surface is in readonly mode.
|
||||||
@Published private(set) var readonly: Bool = false
|
@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
|
// Returns sizing information for the surface. This is the raw C
|
||||||
// structure because I'm lazy.
|
// structure because I'm lazy.
|
||||||
var surfaceSize: ghostty_surface_size_s? {
|
var surfaceSize: ghostty_surface_size_s? {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ extension String {
|
||||||
return self.prefix(maxLength) + trailing
|
return self.prefix(maxLength) + trailing
|
||||||
}
|
}
|
||||||
|
|
||||||
#if canImport(AppKit)
|
#if canImport(AppKit)
|
||||||
func temporaryFile(_ filename: String = "temp") -> URL {
|
func temporaryFile(_ filename: String = "temp") -> URL {
|
||||||
let url = FileManager.default.temporaryDirectory
|
let url = FileManager.default.temporaryDirectory
|
||||||
.appendingPathComponent(filename)
|
.appendingPathComponent(filename)
|
||||||
|
|
@ -16,7 +16,6 @@ extension String {
|
||||||
try? string.write(to: url, atomically: true, encoding: .utf8)
|
try? string.write(to: url, atomically: true, encoding: .utf8)
|
||||||
return url
|
return url
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/// Returns the path with the home directory abbreviated as ~.
|
/// Returns the path with the home directory abbreviated as ~.
|
||||||
var abbreviatedPath: String {
|
var abbreviatedPath: String {
|
||||||
|
|
@ -26,4 +25,5 @@ extension String {
|
||||||
}
|
}
|
||||||
return self
|
return self
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue