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
nonisolated init<V>(destinationName: String, tag: V, selection: Binding<V?>, @ViewBuilder label: () -> Label) where V : HashableParameters
- destinationName:
The storyboard name of a view for the navigation link to present.
- tag:
The value of
selectionthat causes the link to presentdestination. - selection:
A bound variable that causes the link to present
destinationwhenselectionbecomes equal totag. - label:
A view builder to produce a label describing the
destinationto present.