Generic Structure

NavigationDestinationLink

A DynamicViewProperty representing a unique destination in a navigation stack.

Declaration

struct NavigationDestinationLink<Content> where Content : View

Topics

Initializers

init(Content, isDetail: Bool)

Creates an instance representing a unique destination in a navigation stack that displays content.

Instance Properties

var presented: Binding<Bool>?

A Binding indicating if self is currently presenting its content.

Instance Methods

func update()

Called immediately before the view’s body() function is executed, after updating the values of any link variables stored in self.

Relationships

See Also

Creating Navigation Buttons

init(destination: Destination, isDetail: Bool, onTrigger: () -> Bool, label: () -> Label)

Creates an instance that pushes destination onto a navigation stack when triggered.

Deprecated
init(destination: NavigationDestinationLink<Destination>, onTrigger: () -> Bool, label: () -> Label)

Creates an instance that pushes the view represented by destination onto a navigation stack when triggered.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software