The total number of key-value pairs that the dictionary can contain without allocating new storage.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
var capacity: Int { get }
The total number of key-value pairs that the dictionary can contain without allocating new storage.
SDK
Framework
var capacity: Int { get }
var isEmpty : Bool
A Boolean value that indicates whether the dictionary is empty.
var count: Int
The number of key-value pairs in the dictionary.