---
title: UITraitNavigationTitleAlignment
framework: UIKit
role: symbol
role_heading: Class
platforms: [iOS 27.2+, iPadOS 27.2+, Mac Catalyst 27.2+, tvOS 27.2+, visionOS 27.2+]
path: uikit/uitraitnavigationtitlealignment-c.class
---

# UITraitNavigationTitleAlignment

A trait that reports the alignment the navigation bar resolved for its title.

## Declaration

```occ
@interface UITraitNavigationTitleAlignment : NSObject
```

## Overview

Overview Read this trait from a custom navigation bar title view to discover the alignment the system chose, so the view can lay out its content to match. When the system has resolved an alignment the trait reports it, Leading or Center; otherwise it is Automatic. Use the trait to align content within the size your view already reported, not to decide that size. Overriding this trait’s value will not change the actual alignment in the navigation bar. That is controlled by UINavigationItem.titleAlignment.

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [UINSIntegerTraitDefinition](uikit/uinsintegertraitdefinition.md)
