Concept
NavigationStackcreates a navigation context for your views.NavigationLinkis used to push a new view onto the stack when tapped.
Example
NavigationStack {
List(items, id: \.self) { item in
NavigationLink(destination: DetailView(item: item)) {
Text(item)
}
}
}