Developers build iOS and macOS apps with different pages called
navigation routes.

In SwiftUI, the NavigationStack represents this stack of pages.

The following example creates an app that displays a list of persons.
To display a person’s details in a new navigation link,
tap on that person.

NavigationStack

path

path

List

ForEach

persons

person

in

NavigationLink

person

name

value

person

navigationDestination

for

Person

self

person

in

PersonView

person

person