The number of elements in the array.
SDK
- Xcode 9.3+
Framework
- Swift Standard Library
Declaration
var count: Int { get }
The number of elements in the array.
SDK
Framework
var count: Int { get }
var isEmpty : Bool
A Boolean value indicating whether the collection is empty.
var capacity: Int
The total number of elements that the array can contain without allocating new storage.