title: macOS SwiftUI Navigation for a Single View
body: <p>I'm attempting to create a settings view for my macOS SwiftUI status bar app. My implementation so far has been using a <code>NavigationView</code>, and <code>NavigationLink</code>, but this solution produces a half view as the settings view pushes the parent view to the side. Screenshot and code example below.</p>
  <p>Navigation Sidebar</p>
  <p><a href="https://i.stack.imgur.com/YzY0B.png" rel="noreferrer"><img src="https://i.stack.imgur.com/YzY0B.png" alt="enter image description here" /></a></p>
  <pre class="lang-swift prettyprint-override"><code>struct ContentView: View {
      var body: some View {
          VStack{
              NavigationView{
              NavigationLink(destination: SecondView()){
                  Text(&quot;Go to next view&quot;)
                  }}
          }.frame(width: 800, height: 600, alignment: .center)}
  }
  
  struct SecondView: View {
      var body: some View {
          VStack{
  
                  Text(&quot;This is the second view&quot;)
  
          }.frame(width: 800, height: 600, alignment: .center)
      }
  }
  </code></pre>
  <p>The little information I can find suggests that this is unavoidable using SwiftUI on macOS, because the 'full screen' <code>NavigationView</code> on iOS (<code>StackNavigationViewStyle</code>) is not available on macOS.</p>
  <p>Is there a simple or even complex way of implementing a transition to a settings view that takes up the whole frame in SwiftUI for macOS? And if not, is it possible to use <code>AppKit</code> to call a View object written in SwiftUI?</p>
  <p>Also a Swift newbie - please be gentle.</p>