init(destination:label:)
Creates a navigation link that presents the destination view.
Declaration
nonisolated init(@ContentBuilder destination: () -> Destination, @ContentBuilder label: () -> Label)Parameters
- destination:
A view for the navigation link to present.
- label:
A content builder to produce a label describing the
destinationto present.