<!--
{
  "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/NSUserActivity/addUserInfoEntries(from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSUserActivity(im)addUserInfoEntriesFromDictionary:"
  },
  "title" : "addUserInfoEntries(from:)"
}
-->

# addUserInfoEntries(from:)

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

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

## Parameters

`otherDictionary`

The dictionary containing entries to be added.

## Discussion

Use this method to add the keys from `otherDictionary` into the dictionary in the [`userInfo`](/documentation/Foundation/NSUserActivity/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`](/documentation/Foundation/NSUserActivity/userInfo) dictionary as small as possible. The larger the dictionary, the longer it takes to deliver that payload and resume the activity.

---

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)