---
title: ToolbarTitleAlignment
framework: SwiftUI
role: symbol
role_heading: Structure
platforms: [iOS 27.2+, iPadOS 27.2+, Mac Catalyst 27.2+, macOS 27.2+, tvOS 27.2+, visionOS 27.2+, watchOS 27.2+]
path: swiftui/toolbartitlealignment
---

# ToolbarTitleAlignment

A preferred alignment for a navigation bar’s title.

## Declaration

```swift
struct ToolbarTitleAlignment
```

## Overview

Overview Use values of this type with the toolbarTitleAlignment(_:) modifier to override the title alignment the system would use. NavigationStack {     ContentView()         .navigationTitle("Library")         .toolbarTitleAlignment(.center) } To read the alignment the system actually used, see toolbarTitleAlignment.

## Topics

### Type Properties

- [automatic](swiftui/toolbartitlealignment/automatic.md)
- [center](swiftui/toolbartitlealignment/center.md)
- [leading](swiftui/toolbartitlealignment/leading.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
