title: swiftUI bottomBar toolbar disappears when going back
body: <p>I have these swiftUI views and trying to use the <code>toolbar</code> (bottomBar). When you launch the app it appears fine, but after going to <code>View2</code> using he navigationLink and then go back to the main view the toolbar disappears. It happens when the NavigationLink being inside the list. If you don't use a list (put the navigation link inside a VStack or similar) it works as expected and the toolbar reappears when you go back to the initial view. Is there a way to fix this?<a href="https://i.stack.imgur.com/D8dQ4.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/D8dQ4.gif" alt="enter image description here" /></a></p>
  <pre><code>import SwiftUI
  
  struct View2: View {
      var body: some View {
          VStack{
              Text(&quot;View2&quot;)
          }
          
      }
  }
  
  struct ContentView: View {
      var body: some View {
          NavigationView{
              List{
                  NavigationLink(destination: View2()) {
                      Text(&quot;go to View2&quot;)
                  }
                  
              }
              .toolbar(content: {
                  ToolbarItem(placement: .bottomBar, content: {
                      Text(&quot;toolbar item 1&quot;)
                  })
              })
          }
          .navigationViewStyle(StackNavigationViewStyle())
              
      }
  }
  
  struct ContentView_Previews: PreviewProvider {
      static var previews: some View {
          ContentView()
      }
  }
  </code></pre>