Search code examples
swiftuiswiftui-navigationlink

NavigationLink isActive deprecated


In the new version of iOS and Xcode

NavigationLink(isActive: , destination: , label: ) 

is deprecated.

How do we control the status of NavigationLink then?


Solution

  • 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