init(isActive:destination:label:)
Creates a navigation link that presents the destination view when active.
Declaration
nonisolated init(isActive: Binding<Bool>, @ContentBuilder destination: () -> Destination, @ContentBuilder label: () -> Label)Parameters
- isActive:
A binding to a Boolean value that indicates whether
destinationis currently presented. - destination:
A view for the navigation link to present.
- label:
A content builder to produce a label describing the
destinationto present.