init(dictionaryLiteral:)
Initializes a newly allocated dictionary from the given key-value pairs.
Declaration
required convenience init(dictionaryLiteral elements: (Any, Any)...)Parameters
- elements:
A variadic array of two-member tuples, where the first member is a key and the second is its corresponding value.