ToolbarTitleDisplayMode

A type that defines the behavior of title of a toolbar.

StructureiOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+ToolbarTitleDisplayMode in SwiftUI

Declaration

React
type ToolbarTitleDisplayMode = 'automatic' | 'inline' | 'inlineLarge' | 'large';
Swift
struct ToolbarTitleDisplayMode

Pass a literal, or build one with SwiftUI.ToolbarTitleDisplayMode from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Overview

Use the View.toolbarTitleDisplayMode(_:) modifier to configure the title display behavior of your toolbar:

NavigationStack {
    ContentView()
        .toolbarTitleDisplayMode(.inlineLarge)
}

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Navigation.