init(LocalizedStringKey , destination: Destination)
Creates a navigation link that presents a destination view, with a text label that the link generates from a localized string key.
Available when
Label
is Text
and Destination
conforms to View
.init<S>(S, destination: Destination)
Creates a navigation link that presents a destination view, with a text label that the link generates from a title string.
Available when
Label
is Text
and Destination
conforms to View
.init(destination: Destination, label: () -> Label)
Creates a navigation link that presents the destination view.
init(LocalizedStringKey , destination: Destination, isActive : Binding<Bool>)
Creates a navigation link that presents a destination view when active, with a text label that the link generates from a localized string key.
Available when
Label
is Text
and Destination
conforms to View
.init<S>(S, destination: Destination, isActive : Binding<Bool>)
Creates a navigation link that presents a destination view when active, with a text label that the link generates from a title string.
Available when
Label
is Text
and Destination
conforms to View
.init(destination: Destination, isActive : Binding<Bool>, label: () -> Label)
Creates a navigation link that presents the destination view when active.
init<V>(LocalizedStringKey , destination: Destination, tag: V, selection: Binding<V?>)
Creates a navigation link that presents a destination view when a bound selection variable matches a value you provide, using a text label that the link generates from a localized string key.
Available when
Label
is Text
and Destination
conforms to View
.init<V>(destination: Destination, tag: V, selection: Binding<V?>, label: () -> Label)
Creates a navigation link that presents the destination view when a bound selection variable equals a given tag value.