title: NavigationView doesn't display correctly when using TabView in SwiftUI
body: <p>Hello everyone. I'm developing a simple SwiftUI application that displays some tweets. It has a tab view with two views: the main page that will display the tweets and a secondary view.</p>
  
  <p>The problem is that the main page has a <code>NavigationView</code>. If I choose to display only the main page, everything seems correct, but when I display it from the <code>TabView</code> and I scroll down, the NavigationView feels a bit weird.</p>
  
  <p>As I'm not good at explaining, here you have some images:</p>
  
  <p><strong>It should be like this</strong>
  <a href="https://i.stack.imgur.com/nPxPH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nPxPH.png" alt="it should be like this"></a></p>
  
  <p><strong>But it is like this</strong>
  <a href="https://i.stack.imgur.com/vFw5b.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vFw5b.png" alt="but it is like this"></a></p>
  
  <p>I thought of adding <code>.edgesIgnoringSafeArea(.top)</code>, but the NavigationView is now hidden by the notch and it doesn't make the effect.</p>
  
  <p>Is there any way I can make the NavigationView display like in the first image?</p>
  
  <p>Any help is appreciated. Thanks in advance.</p>
  
  <h2>My code</h2>
  
  <p><strong>HomePageView</strong>:</p>
  
  <pre><code>struct HomePageView: View {
  
      var body: some View {
          NavigationView {
              List {
                  //tweet code
              }
              .navigationBarTitle("Your feed")
          }
      }
  }
  </code></pre>
  
  <p><strong>TabView</strong>:</p>
  
  <pre><code>struct TabController: View {
      @State private var selection = 0
  
      var body: some View {
          TabView(selection: $selection){
              HomePageView()
                  .tabItem {
                      VStack {
                          Image(systemName: "house.fill")
                              .font(.title)
                      }
                  }
                  .tag(0)
              Text("Second View")
                  .font(.title)
                  .tabItem {
                      VStack {
                          Image(systemName: "bell.fill")
                              .font(.title)
                      }
                  }
                  .tag(1)
          }
      }
  }
  </code></pre>