mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-20 08:28:51 +03:00
34 lines
709 B
Swift
34 lines
709 B
Swift
import SwiftUI
|
|
|
|
@main
|
|
struct Ghostty_iOSApp: App {
|
|
@StateObject private var ghostty_app = Ghostty.App()
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
iOS_ContentView()
|
|
.environmentObject(ghostty_app)
|
|
}
|
|
}
|
|
}
|
|
|
|
struct iOS_ContentView: View {
|
|
@EnvironmentObject private var ghostty_app: Ghostty.App
|
|
|
|
var body: some View {
|
|
VStack {
|
|
Image("AppIconImage")
|
|
.resizable()
|
|
.aspectRatio(contentMode: .fit)
|
|
.frame(maxHeight: 96)
|
|
Text("Ghostty")
|
|
Text("State: \(ghostty_app.readiness.rawValue)")
|
|
}
|
|
.padding()
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
iOS_ContentView()
|
|
}
|