---
title: badgeTextAttributes
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitabbaritemstateappearance/badgetextattributes
---

# badgeTextAttributes

String attributes to apply to the text of the item’s badge.

## Declaration

```swift
var badgeTextAttributes: [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 badge appearance

- [badgeBackgroundColor](uikit/uitabbaritemstateappearance/badgebackgroundcolor.md)
- [badgeTitlePositionAdjustment](uikit/uitabbaritemstateappearance/badgetitlepositionadjustment.md)
- [badgePositionAdjustment](uikit/uitabbaritemstateappearance/badgepositionadjustment.md)
