iPad SwiftUI layouts

Explore SwiftUI APIs, components, and modifiers with interactive iPad previews, Swift code, and Apple documentation.

Navigation

Toolbar Title Alignment

Sets the preferred alignment of the navigation bar’s title. The navigation bar resolves the alignment of its title automatically based on context, and toolbar roles. Use this modifier to override that resolution.

Explore Toolbar Title Alignment on iPad in portrait and landscape, with SwiftUI code and Apple API documentation.

NavigationStack {
    Text("Foo")
        .navigationTitle("Bar")
        .toolbarTitleAlignment(.center)
        .toolbarTitleDisplayMode(.inline)
}
iOS 27.2+ iPadOS 27.2+

Every available iPad screenshot for Toolbar Title Alignment.

2 views