---
title: titleTextAttributes
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibarbuttonitemstateappearance/titletextattributes
---

# titleTextAttributes

String attributes to apply to the text of the bar button item’s title.

## Declaration

```swift
var titleTextAttributes: [NSAttributedString.Key : Any] { get set }
```

## Discussion

Discussion If you don’t specify font or color attributes for the text, UIKit supplies appropriate default values. For a list of possible keys, see NSAttributedString.Key.

## See Also

### Configuring the title

- [titlePositionAdjustment](uikit/uibarbuttonitemstateappearance/titlepositionadjustment.md)
