mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
24 lines
382 B
Swift
24 lines
382 B
Swift
import SwiftUI
|
|
|
|
@main
|
|
struct Ghostty: App {
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView()
|
|
}
|
|
}
|
|
}
|
|
|
|
struct ContentView: View {
|
|
@StateObject var viewModel: ViewModel = ViewModel()
|
|
|
|
var body: some View {
|
|
TextField("", text: $viewModel.inputText)
|
|
.padding()
|
|
}
|
|
}
|
|
|
|
public class ViewModel: ObservableObject {
|
|
@Published var inputText: String = ""
|
|
}
|