---
title: userInfo
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsextensionitem/userinfo
---

# userInfo

An optional dictionary of keys and values corresponding to the extension item’s properties.

## Declaration

```swift
var userInfo: [AnyHashable : Any]? { get set }
```

## Discussion

Discussion If applicable to a particular extension type, additional information may be available in the userInfo dictionary. For example, in the context of an Action extension, the userInfo dictionary may contain values for the keys NSExtensionItemAttachmentsKey, NSExtensionItemAttributedContentTextKey, and NSExtensionItemAttributedTitleKey. important: Setting the userInfo dictionary after setting attachments, attributedContentText, or attributedTitle overrides those properties.

## See Also

### Identifying the Item

- [attributedTitle](foundation/nsextensionitem/attributedtitle.md)
