<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -",
    "tvOS: 15.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIButton/Configuration-swift.struct/attributedTitle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So8UIButtonC5UIKitE13ConfigurationV15attributedTitle10Foundation16AttributedStringVSgvp"
  },
  "title" : "attributedTitle"
}
-->

# attributedTitle

The text and style attributes for the button’s title label.

```
var attributedTitle: AttributedString? { get set }
```

## Discussion

The configuration sets the [`title`](/documentation/UIKit/UIButton/Configuration-swift.struct/title) property to match the string value of this attributed string. To change the button title when the button state changes, use [`configurationUpdateHandler`](/documentation/UIKit/UIButton/configurationUpdateHandler-swift.property) or [`updateConfiguration()`](/documentation/UIKit/UIButton/updateConfiguration()).

---

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)