title: Creating a NavigationLink in SwiftUI without NavigationView
body: <p>So I <a href="https://stackoverflow.com/questions/58562063/create-a-navigationlink-without-back-button-swiftui">found</a> this amazing piece of code which uses <code>presentationMode</code> environment variable to archive transition between views without NavigationView:</p>
  <pre><code>import SwiftUI
  
  struct View2: View {
      @Environment(\.presentationMode) var presentationMode: Binding&lt;PresentationMode&gt;
  
      var body: some View {
          VStack {
              Button(action: {
                  self.presentationMode.wrappedValue.dismiss()
              }) {
                  Text(&quot;POP&quot;)
              }
          }
          .navigationBarTitle(&quot;&quot;)
          .navigationBarBackButtonHidden(true)
          .navigationBarHidden(true)
      }
  }
  
  struct ContentView: View {
      var body: some View {
          NavigationView {
              NavigationLink(destination: View2()) {
                  Text(&quot;PUSH&quot;)
                      .navigationBarTitle(&quot;&quot;)
                      .navigationBarHidden(true)
              }
          }
      }
  }
  
  struct ContentView_Previews: PreviewProvider {
      static var previews: some View {
          ContentView()
      }
  }
  </code></pre>
  <p>but when I wrap it in another View (which is what I need to do in my own app):</p>
  <pre><code>import SwiftUI
  
  struct View2: View {
      @SwiftUI.Environment(\.presentationMode) var presentationMode: Binding&lt;PresentationMode&gt;
  
      var body: some View {
          VStack {
              Button(action: {
                  self.presentationMode.wrappedValue.dismiss()
              }) {
                  Text(&quot;POP&quot;)
              }
          }
          .navigationBarTitle(&quot;&quot;)
          .navigationBarBackButtonHidden(true)
          .navigationBarHidden(true)
      }
  }
  
  struct Playground: View {
      var index: Int
      var body: some View {
          NavigationView {
              NavigationLink(destination: View2()) {
                  Text(&quot;PUSH #\(index)&quot;)
                      .navigationBarTitle(&quot;&quot;)
                      .navigationBarHidden(true)
              }
          }
      }
  }
  
  struct Playgrounds: View {
      var body: some View {
          VStack {
              Text(&quot;List of bush buttons&quot;).font(.title)
              List(0..&lt;5, id: \.self) { index in
                  HStack {
                      Playground(index: index)
                  }
              }
          }
      }
  }
  
  struct Playground_Previews: PreviewProvider {
      static var previews: some View {
          Playgrounds()
      }
  }
  
  </code></pre>
  <p>I can only see a list of &quot;back&quot; buttons (without their labels!):
  <a href="https://i.stack.imgur.com/vLHxy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vLHxy.png" alt="enter image description here" /></a>
  instead of a list of &quot;Push #1&quot;, &quot;Push #2&quot; etc (which should open View2 onClick event). How can I fix it?</p>