navigationSubtitle(_:)
Configures the view’s subtitle for purposes of navigation, using a localized string resource.
Declaration
@export(implementation) nonisolated func navigationSubtitle(_ subtitleKey: LocalizedStringResource) -> some View
Parameters
- subtitleKey:
The key to a localized string to display.
Discussion
A view’s navigation subtitle is used to provide additional contextual information alongside the navigation title. On macOS, the primary destination’s subtitle is displayed with the navigation title in the titlebar. On iOS and iPadOS, the subtitle is displayed with the navigation title in the navigation bar.