title: Is it possible for a NavigationLink to perform an action in addition to navigating to another view?
body: <p>I'm trying to create a button that not only navigates to another view, but also run a function at the same time. I tried embedding both a NavigationLink and a Button into a Stack, but I'm only able to click on the Button.</p>
  <pre><code>ZStack {
      NavigationLink(destination: TradeView(trade: trade)) {
          TradeButton()
      }
      Button(action: {
          print(&quot;Hello world!&quot;) //this is the only thing that runs
      }) {
          TradeButton()
      }
  }
  </code></pre>