title: How do you fix Xcode 14 warning: NavigationLink presenting a value must appear inside a NavigationContent-based NavigationView. Link will be disabled
body: <p>Since installing Xcode 14, I am now getting the following error message printed in my console:</p>
  <blockquote>
  <p>NavigationLink presenting a value must appear inside a
  NavigationContent-based NavigationView. Link will be disabled.</p>
  </blockquote>
  <p>My app is structured as follows:</p>
  <ol>
  <li><p>I have View A wrapped in a NavigationView. The Navigation View has a navigation link inside it that links to View B.</p>
  </li>
  <li><p>I have View B that doesn't have a Navigation View, but has a navigation link to View C. View B inherits the navigation view defined in View A</p>
  </li>
  </ol>
  <p>The warning is printed when I press the back button on View B, popping back to View A.
  The warning goes away when I wrap View B in a NavigationView, but this of course now displays View B in two Navigation Views, which is not what I want.</p>
  <p>I'm unsure why this warning is printing, because View B inherits the NavigationView defined in View A.</p>