NavigationLink isActive deprecated

Viewed 463

In the new version of iOS and Xcode

NavigationLink(isActive: , destination: , label: ) 

is deprecated.

How do we control the status of NavigationLink then?

3 Answers

Use new NavigationLink(value:label:) as specified. By putting corresponding value into NavigationPath you activate a link.

See more for example in this topic

demo

The isActive implementation of NavigationLink is deprecated in iOS 16. Instead, you should use the new NavigationLink(value:) along with .navigationDestination with NavigationStack.

Related