title: Why does my SwiftUI app crash when navigating backwards after placing a `NavigationLink` inside of a `navigationBarItems` in a `NavigationView`?
body: <p><strong>EDIT: This has been fixed in iOS 13.3!</strong></p>
  <p>Minimal reproducible example (Xcode 11.2 beta, this works in Xcode 11.1):</p>
  <pre><code>struct Parent: View {
      var body: some View {
          NavigationView {
              Text(&quot;Hello World&quot;)
                  .navigationBarItems(
                      trailing: NavigationLink(destination: Child(), label: { Text(&quot;Next&quot;) })
                  )
          }
      }
  }
  
  struct Child: View {
      @Environment(\.presentationMode) var presentation
      var body: some View {
          Text(&quot;Hello, World!&quot;)
              .navigationBarItems(
                  leading: Button(
                      action: {
                          self.presentation.wrappedValue.dismiss()
                      },
                      label: { Text(&quot;Back&quot;) }
                  )
              )
      }
  }
  
  struct ContentView: View {
      var body: some View {
          Parent()
      }
  }
  </code></pre>
  <p>The issue seems to lie in placing my <code>NavigationLink</code> inside of a <code>navigationBarItems</code> modifier that's nested inside of a SwiftUI view whose root view is a <code>NavigationView</code>. The crash report indicates that I'm trying to pop to a view controller that doesn't exist when I navigate forward to <code>Child</code> and then back to <code>Parent</code>.</p>
  <pre><code>Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Tried to pop to a view controller that doesn't exist.'
  *** First throw call stack:
  </code></pre>
  <p>If I were to instead place that <code>NavigationLink</code> in the body of the view like the below, it works just fine.</p>
  <pre><code>struct Parent: View {
      var body: some View {
          NavigationView {
              NavigationLink(destination: Child(), label: { Text(&quot;Next&quot;) })
          }
      }
  }
  </code></pre>
  <p>Is this a SwiftUI bug or expected behavior?</p>
  <p>EDIT: I've opened an issue with Apple in their feedback assistant with the ID <code>FB7423964</code> in case anyone out there from Apple cares to weigh in :).</p>
  <p>EDIT: My open ticket in the feedback assistant indicates there are 10+ similar reported issues. They've updated the resolution with <code>Resolution: Potential fix identified - For a future OS update</code>. Fingers crossed that the fix lands soon.</p>