title: SwiftUI - navigationBarBackButtonHidden - swipe back gesture?
body: <p>if I set a custom Back Button (which everyone wants, hiding the ugly text ;-) ) and using .navigationBarBackButtonHidden, the standard Swipe Back gesture on the navigation controller does not work. Is there a way to get this back and having a custom back button?</p>
  
  <p>For Example:</p>
  
  <pre><code>NavigationView {
      NavigationLink(destination: DummyViewer())
       {
         Text("Go to next view"
      } 
   }
  </code></pre>
  
  <pre><code>struct DummyViewer: View {
      @Environment(\.presentationMode) var presentationMode: Binding&lt;PresentationMode&gt;
      var body: some View {
          Text("Hello, World!").navigationBarBackButtonHidden(true)
              .navigationBarItems(leading:
                  Button(action: { self.presentationMode.wrappedValue.dismiss()}) {
                      Text("Custom go back")
                  }
          )
      }
  }
  
  </code></pre>
  
  <p>If I do so, I cannot swipe back to the previous view, seems the gesture is then disabled... How to get it back?</p>
  
  <p>BR
  Steffen</p>