Adds to the receiving dictionary the entries from another dictionary.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The dictionary from which to add entries
Each value object from
other is sent a
retain message before being added to the receiving dictionary. In contrast, each key object is copied (using
copy(with:)—keys must conform to the
NSCopying protocol), and the copy is added to the receiving dictionary.
If both dictionaries contain the same key, the receiving dictionary’s previous value object for that key is sent a
release message, and the new value object takes its place.