title: SwiftUI: Navigate from a view with a navigationbackbutton to a fullscreen view
body: <p>I am making a menu for my game using <code>NavigationView</code> and <code>NavigationLink</code>. I have three views as such:</p>
  <pre><code>struct MainMenuView: View {
      var body: some View {
          NavigationView {
              // relevant stuff
              NavigationLink(destination: CustomGameSettingsView()) {
                  Text(&quot;Custom Game&quot;)
              }
          }
      }
  }
  </code></pre>
  <pre><code>struct CustomGameSettingsView: View {
      var body: some View {
          NavigationView {
              // ui to change game settings and stuff
              NavigationLink(destination: MyGameView(customSettings)) {
                  Text(&quot;Play Game!&quot;)
              }
          }
      }
  }
  </code></pre>
  <p>Note that the <code>CustomGameSettingsView</code> shows the <code>navigationBarBackButton</code></p>
  <pre><code>struct MyGameView: View {
      var body: some View {
          myGameViews {
              // stuff
          }
          .navigationBarBackButtonHidden(true)
          .navigationBarHidden(true)
          .navigationBarTitle(Text(&quot;myGame&quot;))
          .edgesIgnoringSafeArea([.top, .bottom])
  
          // these are the things I have tried to get rid of the navigationBackButton
      }
      .onAppear() {
          self.navigationBarBackButtonHidden(true)
      } // another thing I tried
  }
  </code></pre>
  <p>When I navigate from <code>MainMenuView</code> to <code>CustomGameSettingsView</code>, I gain a <code>navigationBarBackButton</code> which stays with me when I navigate to <code>MyGameView</code>. How do I get rid of that on the final navigation? I want the back button on the settings menu but I want my game to be fullscreen. Is <code>NavigationView</code> the wrong tool in this instance?</p>
  <p>Thank you in advance.</p>