macos: empty window

This commit is contained in:
Mitchell Hashimoto
2023-02-13 21:21:42 -08:00
parent 4d09f8dba6
commit 81299fde9c

View File

@ -1,7 +1,7 @@
import SwiftUI
@main
struct Ghostty: App {
struct MyApp: App {
var body: some Scene {
WindowGroup {
ContentView()
@ -10,14 +10,8 @@ struct Ghostty: App {
}
struct ContentView: View {
@StateObject var viewModel: ViewModel = ViewModel()
var body: some View {
TextField("", text: $viewModel.inputText)
.padding()
Text("Ghostty")
.font(.largeTitle)
}
}
public class ViewModel: ObservableObject {
@Published var inputText: String = ""
}