toolbarTitleDisplayMode(_:)
Configures the toolbar title display mode for this view.
Declaration
nonisolated func toolbarTitleDisplayMode(_ mode: ToolbarTitleDisplayMode) -> some View
Discussion
Use this modifier to override the default toolbar title display mode.
NavigationStack {
ContentView()
.toolbarTitleDisplayMode(.inlineLarge)
}See ToolbarTitleDisplayMode for more information on the different kinds of display modes. This modifier has no effect on macOS.