title: SwiftUI: Hide Statusbar on NavigationLink destination
body: <p>I have a master detail structure with a list on master and a detail page where I want to present a webpage fullscreen, so no navigation bar and no status bar. The user can navigate back by a gesture (internal app).</p>
  
  <p>I'm stuggeling hiding the statusbar with </p>
  
  <pre><code>.statusBar(hidden: true)
  </code></pre>
  
  <p>This works on master page, but not on detail page.</p>
  
  <p>Hiding the navigation bar works fine with my ViewModifier</p>
  
  <pre><code>public struct NavigationAndStatusBarHider: ViewModifier {
      @State var isHidden: Bool = false
  
      public func body(content: Content) -&gt; some View {
          content
              .navigationBarTitle("")
              .navigationBarHidden(isHidden)
              .statusBar(hidden: isHidden)
              .onAppear {self.isHidden = true}
      }
  }
  
  extension View {
      public func hideNavigationAndStatusBar() -&gt; some View {
          modifier(NavigationAndStatusBarHider())
      }
  }
  </code></pre>
  
  <p>Any idea?</p>