macos: add ErrorView

This commit is contained in:
Mitchell Hashimoto
2023-02-14 16:11:47 -08:00
parent 9bd527fe00
commit c438d72f13
7 changed files with 57 additions and 6 deletions

View File

@@ -16,9 +16,9 @@ struct GhosttyApp: App {
WindowGroup {
switch ghostty.readiness {
case .error:
Text("Error")
ErrorView()
case .ready:
Text("Hello!").font(.largeTitle)
ContentView()
}
}
}