Relative Content

Tag Archive for swiftuiswiftui-navigationlink

SwiftUI navigationLink not navigating from popup view to another view

When I click on MapView annotation, a PopupView comes up with some text and a button. I want to navigate to DetailsView by clicking on the button display in the popup, the button is embedded inside NavigationLink. But clicking on the button nothing happens. I put in debug breakpoint inside the button code and never hits breakpoint. It is as if the NavigationLink button is dead. How to activate it and navigate to DetailsView via button click?