mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-06-02 05:28:46 +03:00
macos: empty window
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user