title: Displaying a NavigationBar, inside a NavigationView, inside a TabView, after a NavigationLink. SwiftUI
body: <p>I'm making an App in which user needs to Log In and after that take me to a TabView in which I have 3 different views (Navigation Views).</p>
  
  <p>The problem is after I Log In, and use a NavigationLink to send me to the TabView, to display me the 3 different views, in which I have NavigationBarTitles; it also creates another (empty) NavigationBarTitle over mine. </p>
  
  <p>Already tried to use the usual method of: Inside this individual views, eliminate the NavigationView property, as it would usually work, but not in this case. </p>
  
  <p>LOGIN VIEW</p>
  
  <pre><code>import SwiftUI
  
  struct LogInView: View {
      var body: some View {
          NavigationView {
              VStack {
                  NavigationLink (destination: ContentView()) {
                      Text("Log In")
                          .foregroundColor(.white)
                          .padding(15)
                          .background(Color.blue)
                          .cornerRadius(10)
                  }
              }.navigationBarTitle("Log In View")
          }
      }
  }
  
  struct LogInView_Previews: PreviewProvider {
      static var previews: some View {
          LogInView()
      }
  }
  </code></pre>
  
  <p>TABVIEW</p>
  
  <pre><code>import SwiftUI
  
  struct ContentView: View {
      @State private var selection = 0
  
      var body: some View {
          TabView(selection: $selection){
  
              DetailView()
                  .font(.title)
                  .tabItem {
                      VStack {
                          Image("first")
                          Text("First")
                      }
                  }
                  .tag(0)
  
          }.edgesIgnoringSafeArea(.top)
          .navigationBarBackButtonHidden(true)
          .navigationBarHidden(true)
      }
  }
  
  struct ContentView_Previews: PreviewProvider {
      static var previews: some View {
          ContentView()
      }
  }
  </code></pre>
  
  <p>DETAIL VIEW</p>
  
  <pre><code>import SwiftUI
  
  struct DetailView: View {
      var body: some View {
          NavigationView {
              List {
                  Text("Hi")
                  Text("Hi")
                  Text("Hi")
              }.navigationBarTitle("DetailView")
          }
      }
  }
  
  struct DetailView_Previews: PreviewProvider {
      static var previews: some View {
          DetailView()
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/dhLLk.png" rel="nofollow noreferrer">This is how it looks</a></p>