A Boolean value that indicates whether the dictionary is empty.
SDK
- Xcode 10.0+
Framework
- Swift Standard Library
Declaration
Discussion
Dictionaries are empty when created with an initializer or an empty dictionary literal.
A Boolean value that indicates whether the dictionary is empty.
SDK
Framework
Dictionaries are empty when created with an initializer or an empty dictionary literal.
var count: Int
The number of key-value pairs in the dictionary.
var capacity: Int
The total number of key-value pairs that the dictionary can contain without allocating new storage.