Initializer

init(destinationName:tag:selection:label:)

Creates a navigation link that presents a view from a WatchKit storyboard when a bound selection variable matches a value you provide.

Declaration 宣言

init<V>(destinationName: String, tag: V, selection: Binding<V?>, label: () -> Label) where V : Hashable
Available when Label conforms to View and Destination is _WKStoryboardContent.

Parameters パラメータ

destinationName

The storyboard name of a view for the navigation link to present.

tag

The value of selection that causes the link to present destination.

selection

A bound variable that causes the link to present destination when selection becomes equal to tag.

label

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

See Also 参照

Presenting a Selectable Destination View