Daily iOS
SwiftUI

NavigationStack navigation

How do you implement navigation between screens in SwiftUI?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

NavigationStack on iOS 16 and later is the standard, with value-based navigation via NavigationLink(value:) plus .navigationDestination(for:). NavigationView and view-based links are deprecated.

Share a question