Closed deskside closed 1 year ago
Use NavigationStack and NavigationSplitView instead. For more information, see Migrating to new navigation types.
NavigationStack can simply replace the NavigationView.
NavigationStack
NavigationView
The most common way to use NavigationLink:
NavigationLink
NavigationLink(destination: XXXView){ Lable }
Use NavigationStack and NavigationSplitView instead. For more information, see Migrating to new navigation types.