navigationDestination

Associates a destination view with a presented data type for use within a navigation stack.

View ModifieriOS 16.0+macOS 13.0+tvOS 16.0+watchOS 9.0+

Overloads

3 ways to call compose().navigationDestination(). Each is one SwiftUI overload, picked by the arguments you pass.

See also

More in Navigation.