Thanks for your response. The solution with the value based navigation links works as expected.
Interestingly, it also works if you have two separate views, one with the NavigationLink(destination:label:) and one with the .navigationDestination(for:destination:) modifier. It stops working if you have two or more views with the NavigationLink(destination:label:) and navigate between them.
Thanks for your response. The solution with the value based navigation links works as expected.
Interestingly, it also works if you have two separate views, one with the NavigationLink(destination:label:) and one with the .navigationDestination(for:destination:) modifier. It stops working if you have two or more views with the NavigationLink(destination:label:) and navigate between them.