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