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 : BoolA Boolean value indicating whether the collection is empty.
var capacity: IntThe total number of elements that the array can contain without allocating new storage.