---
title: userInfo
framework: usernotifications
role: symbol
role_heading: Instance Property
path: usernotifications/unmutablenotificationcontent/userinfo
---

# userInfo

The custom data to associate with the notification.

## Declaration

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

## Mentioned in

Declaring your actionable notification types

## Discussion

Discussion Use this property to associate custom information with the notification. The contents of the dictionary aren’t seen by the user, but are accessible to your app or to any notification-related app extensions. The keys in this dictionary must be types that can be serialized into the property-list format. For information about property-list types, see Property List Programming Guide.

## See Also

### Providing supplementary content

- [attachments](usernotifications/unmutablenotificationcontent/attachments.md)
