title: SwiftUI: NavigationDestinationLink deprecated
body: <p>After installing Xcode 11 beta 5 this morning, I noticed that <code>NavigationDestinationLink</code> was deprecated in favor of <code>NavigationLink</code>. </p>
  
  <p>Also, that's what Apple says about it in the release notes:</p>
  
  <blockquote>
    <p>NavigationDestinationLink and DynamicNavigationDestinationLink are deprecated; their functionality is now included in NavigationLink. (50630794)</p>
  </blockquote>
  
  <p>The way I use NavigationDestinationLink is to programmatically push a new view into the stack via <code>self.link.presented?.value = true</code>. That functionality doesn't seem to be present in <code>NavigationLink</code>. </p>
  
  <p>Any idea anyone? 
  I would rather not use <code>NavigationDestinationLink</code> anymore as it's deprecated...</p>
  
  <p>Thank you!</p>
  
  <p><strong>UPDATE:</strong> 
  Actually, the <code>NavigationDestinationLink</code> way does not work anymore so I guess we have no way of pushing programmatically anymore?</p>
  
  <p><strong>UPDATE 2:</strong></p>
  
  <pre class="lang-swift prettyprint-override"><code>NavigationLink(destination: CustomView(), isActive: $isActive) {
      return Text("")
  }
  </code></pre>
  
  <p>This works but when you pass <code>isActive</code> to true, any state update will trigger this code and push over and over... Also, if you pass it back to <code>false</code>, it will pop the view. 
  Not only updates, if you set <code>isActive</code> to <code>true</code>, it will push the view (good) and if we press the back button, it will go back then immediately push again since it's still true. 
  Playing with <code>onAppear</code> was my hope but it's not called when going back to it... 
  I'm not sure how we're supposed to use this.</p>