mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-06-05 15:08:38 +03:00
macos: empty window
This commit is contained in:
@ -1,23 +1,17 @@
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
@main
|
@main
|
||||||
struct Ghostty: App {
|
struct MyApp: App {
|
||||||
var body: some Scene {
|
var body: some Scene {
|
||||||
WindowGroup {
|
WindowGroup {
|
||||||
ContentView()
|
ContentView()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ContentView: View {
|
struct ContentView: View {
|
||||||
@StateObject var viewModel: ViewModel = ViewModel()
|
var body: some View {
|
||||||
|
Text("Ghostty")
|
||||||
var body: some View {
|
.font(.largeTitle)
|
||||||
TextField("", text: $viewModel.inputText)
|
}
|
||||||
.padding()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public class ViewModel: ObservableObject {
|
|
||||||
@Published var inputText: String = ""
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user