<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITabBarItemStateAppearance",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITabBarItemStateAppearance"
  },
  "title" : "UITabBarItemStateAppearance"
}
-->

# UITabBarItemStateAppearance

A data object containing the specific customizations for tab bar items in a particular state.

```
@MainActor class UITabBarItemStateAppearance
```

## Overview

Use a [`UITabBarItemStateAppearance`](/documentation/UIKit/UITabBarItemStateAppearance) object to customize the appearance of your tab bar items and the badges they display. Don’t create [`UITabBarItemStateAppearance`](/documentation/UIKit/UITabBarItemStateAppearance) objects yourself. Instead, create a [`UITabBarItemAppearance`](/documentation/UIKit/UITabBarItemAppearance) object and use its properties to fetch the appearance attributes for tab bar items in a particular state. For example, to set the attributes for items in the normal state, configure the object in the [`normal`](/documentation/UIKit/UITabBarItemAppearance/normal) property.

## Topics

### Configuring the item’s title

[`var titleTextAttributes: [NSAttributedString.Key : Any]`](/documentation/UIKit/UITabBarItemStateAppearance/titleTextAttributes)

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

[`var titlePositionAdjustment: UIOffset`](/documentation/UIKit/UITabBarItemStateAppearance/titlePositionAdjustment)

The additional amount by which to offset the title horizontally and vertically.

### Tinting the item’s icon

[`var iconColor: UIColor?`](/documentation/UIKit/UITabBarItemStateAppearance/iconColor)

The color of item icons.

### Configuring the badge appearance

[`var badgeTextAttributes: [NSAttributedString.Key : Any]`](/documentation/UIKit/UITabBarItemStateAppearance/badgeTextAttributes)

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

[`var badgeBackgroundColor: UIColor?`](/documentation/UIKit/UITabBarItemStateAppearance/badgeBackgroundColor)

The background color of the badge.

[`var badgeTitlePositionAdjustment: UIOffset`](/documentation/UIKit/UITabBarItemStateAppearance/badgeTitlePositionAdjustment)

The additional amount by which to offset the badge’s title horizontally and vertically.

[`var badgePositionAdjustment: UIOffset`](/documentation/UIKit/UITabBarItemStateAppearance/badgePositionAdjustment)

The additional amount by which to offset the badge horizontally and vertically.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)