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

# userInfo

The custom data to associate with the notification.

## Declaration

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

## Mentioned in

Declaring your actionable notification types Generating a remote notification

## Discussion

Discussion For remote notifications, this property contains the entire notification payload. For local notifications, you configure the property directly before scheduling the notification. The keys in this dictionary must be property-list types—that’s, they 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

### Accessing supplementary content

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