Contents

init(_:destination:isActive:)

Creates a navigation link that presents a destination view when active, with a text label that the link generates from a localized string key.

Declaration

nonisolated init(_ titleKey: LocalizedStringKey, destination: Destination, isActive: Binding<Bool>)

Parameters

  • titleKey:

    A localized string key for creating a text label.

  • destination:

    A view for the navigation link to present.

  • isActive:

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

See Also

Creating links with view arguments