---
title: attributedContentText
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsextensionitem/attributedcontenttext
---

# attributedContentText

An optional string describing the extension item content.

## Declaration

```swift
@NSCopying var attributedContentText: NSAttributedString? { get set }
```

## Discussion

Discussion important: Alternatively, you can set attributed content in the userInfo dictionary using the NSExtensionItemAttributedContentTextKey key. However, setting the userInfo dictionary after setting attributedContentText overrides this property.

## See Also

### Item Contents

- [attachments](foundation/nsextensionitem/attachments.md)
