macOS SwiftUI Navigation for a Single View
问题 I'm attempting to create a settings view for my macOS SwiftUI status bar app. My implementation so far has been using a NavigationView , and NavigationLink , but this solution produces a half view as the settings view pushes the parent view to the side. Screenshot and code example below. Screenshot - Navigation Sidebar struct ContentView: View { var body: some View { VStack{ NavigationView{ NavigationLink(destination: SecondView()){ Text("Go to next view") }} }.frame(width: 800, height: 600,