<!--
{
  "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/userInfo",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSExtensionItem(py)userInfo"
  },
  "title" : "userInfo"
}
-->

# userInfo

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

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

## 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`](/documentation/Foundation/NSExtensionItemAttachmentsKey), [`NSExtensionItemAttributedContentTextKey`](/documentation/Foundation/NSExtensionItemAttributedContentTextKey), and [`NSExtensionItemAttributedTitleKey`](/documentation/Foundation/NSExtensionItemAttributedTitleKey).

> Important:
> Setting the ``doc://com.apple.foundation/documentation/Foundation/NSExtensionItem/userInfo`` dictionary after setting ``doc://com.apple.foundation/documentation/Foundation/NSExtensionItem/attachments``, ``doc://com.apple.foundation/documentation/Foundation/NSExtensionItem/attributedContentText``, or ``doc://com.apple.foundation/documentation/Foundation/NSExtensionItem/attributedTitle`` overrides those properties.

---

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)