init(dictionary:)
Initializes a newly allocated dictionary by placing in it the keys and values contained in another given dictionary.
Declaration
convenience init(dictionary otherDictionary: [AnyHashable : Any])Parameters
- otherDictionary:
A dictionary containing the keys and values with which to initialize the new dictionary.
Return Value
An initialized dictionary—which might be different than the original receiver—containing the keys and values found in otherDictionary.