From 81299fde9c3ed50301d85eb882f99a8019a46209 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 13 Feb 2023 21:21:42 -0800 Subject: [PATCH] macos: empty window --- macos/Sources/Ghostty/entry.swift | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/macos/Sources/Ghostty/entry.swift b/macos/Sources/Ghostty/entry.swift index 0354fb9a8..2829f7fa3 100644 --- a/macos/Sources/Ghostty/entry.swift +++ b/macos/Sources/Ghostty/entry.swift @@ -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) + } }