capacity The total number of elements that the set can contain without allocating new storage. Declarationvar capacity: Int { get } See AlsoInspecting a SetisEmptycount