<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSExtensionItem/attributedTitle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSExtensionItem(py)attributedTitle"
  },
  "title" : "attributedTitle"
}
-->

# attributedTitle

An optional title for the item.

```
@NSCopying var attributedTitle: NSAttributedString? { get set }
```

## Discussion

> Important:
> Alternatively, you can set attributed content in the ``doc://com.apple.foundation/documentation/Foundation/NSExtensionItem/userInfo`` dictionary using the ``doc://com.apple.foundation/documentation/Foundation/NSExtensionItemAttributedTitleKey`` key. However, setting the ``doc://com.apple.foundation/documentation/Foundation/NSExtensionItem/userInfo`` dictionary after setting ``doc://com.apple.foundation/documentation/Foundation/NSExtensionItem/attributedTitle`` overrides this property.

## See Also

  [App Extension Programming Guide](https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/index.html#//apple_ref/doc/uid/TP40014214)



---

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)