Contents

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 destination is currently presented.

  • label:

    A view builder to produce a label describing the destination to present.

See Also

Creating links with view arguments