title: SwiftUI: NavigationButton initializer gives error
body: <p>Inside one of my SwiftUI Views, I have this code: </p>
  
  <pre><code>NavigationButton(destination: DetailView()) {
      Text(verbatim: "Start")
  }
  </code></pre>
  
  <p>Xcode isn't able to build the code and gives this error: </p>
  
  <pre><code>'(DetailView, @escaping () -&gt; Text) -&gt; NavigationButton&lt;Text, DetailView&gt;' is not convertible to '(DetailView, Bool, @escaping () -&gt; Bool, () -&gt; Text) -&gt; NavigationButton&lt;Text, DetailView&gt;'
  </code></pre>
  
  <p>I believe Xcode thinks that I am using the <code>init(destination: Destination, isDetail: Bool, onTrigger: () -&gt; Bool, label: () -&gt; Label)</code> initializer, but I am using the <code>init(destination: Destination, label: () -&gt; Label)</code> one. </p>
  
  <p>The strange thing is that the one I am using is not documented (<a href="https://developer.apple.com/documentation/swiftui/navigationbutton" rel="nofollow noreferrer">https://developer.apple.com/documentation/swiftui/navigationbutton</a>) but it is used in multiple tutorials I have seen, for example <a href="https://www.hackingwithswift.com/quick-start/swiftui/how-to-push-a-new-view-using-navigationbutton" rel="nofollow noreferrer">https://www.hackingwithswift.com/quick-start/swiftui/how-to-push-a-new-view-using-navigationbutton</a>. </p>
  
  <p>So my question is: Is the initializer that I am using wrong or is there a way to avoid the error?</p>
  
  <p><strong>Update: Problem solved, see comments!</strong></p>