mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +03:00
22 lines
353 B
Swift
22 lines
353 B
Swift
import SwiftUI
|
|
import GhosttyKit
|
|
|
|
@main
|
|
struct MyApp: App {
|
|
@State private var num = ghostty_hello()
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
Text(String(num))
|
|
.font(.largeTitle)
|
|
}
|
|
}
|
|
}
|
|
|
|
struct ContentView: View {
|
|
var body: some View {
|
|
Text("Ghostty")
|
|
.font(.largeTitle)
|
|
}
|
|
}
|