---
title: "addUserInfoEntries(from:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsuseractivity/adduserinfoentries(from:)"
---

# addUserInfoEntries(from:)

Adds the contents of the specified dictionary to the user info dictionary.

## Declaration

```swift
func addUserInfoEntries(from otherDictionary: [AnyHashable : Any])
```

## Parameters

- `otherDictionary`: The dictionary containing entries to be added.

## Mentioned in

Implementing Handoff in Your App

## Discussion

Discussion Use this method to add the keys from otherDictionary into the dictionary in the userInfo property. If the same key is in both dictionaries, the value of the key is set to the value in the otherDictionary parameter. It’s recommended that you keep the userInfo dictionary as small as possible. The larger the dictionary, the longer it takes to deliver that payload and resume the activity.

## See Also

### Specifying activity-related data

- [userInfo](foundation/nsuseractivity/userinfo.md)
- [requiredUserInfoKeys](foundation/nsuseractivity/requireduserinfokeys.md)
