Initializer

init(isActive:destination:label:)

Creates a navigation link that presents the destination view when active.

Declaration 宣言

init(isActive: Binding<Bool>, destination: () -> Destination, label: () -> Label)

Parameters パラメータ

isActive

A binding to a Boolean value that indicates whether destination is currently presented.

destination

A view for the navigation link to present.

label

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

See Also 参照

Presenting with Programmatic Activation