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,23 +1,17 @@
import SwiftUI
@main
struct Ghostty: App {
var body: some Scene {
WindowGroup {
ContentView()
struct MyApp: 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 = ""
var body: some View {
Text("Ghostty")
.font(.largeTitle)
}
}