navigationSubtitle(_:)
Configures the view’s subtitle for purposes of navigation.
Declaration
nonisolated func navigationSubtitle(_ subtitle: Text) -> some View
Parameters
- subtitle:
The subtitle 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.