Is there a way to completely hide the Navigation bar on the MacOS version of SwiftUI? I know there's navigationBarHidden(true) but that only works on iOS from what I've seen.
So I'm trying to have something like a title screen when the app boots so the user has to press enter and it goes to different screen.
struct TitleScreen: View {
var body: some View {
ZStack {
Color.customColor
.ignoresSafeArea(.all)
NavigationView {
NavigationLink(destination: MainMenu()) {
/*nothing*/
}.keyboardShortcut(KeyEquivalent.return, modifiers: .init())
}
VStack {
Text("Press Enter!")
}
}
}
}
struct MainMenu: View {
var body: some View {
Text("Main Menu")
Image("placeholder")
}
}
I'm trying to have the Navigation bar that appears due to NavigationView not be there.
Also it would be nice if the original View in TitleScreen went away in some way but I can worry about that later.