endIndex
TypeScriptget endIndex(): SDKHandleSwift declarationvar endIndex: IndexPath.Index { get }One past the index of the last node in the index path.
struct · iOS 8.0+ · SDK 27.1
struct IndexPathA list of indexes that together represent the path to a specific location in a tree of nested arrays. Each index in an index path represents the index into an array of children from one node in the tree to another, deeper, node.
get endIndex(): SDKHandleSwift declarationvar endIndex: IndexPath.Index { get }One past the index of the last node in the index path.
get startIndex(): SDKHandleSwift declarationvar startIndex: IndexPath.Index { get }The index of the first node in the index path.
get description(): stringSwift declarationvar description: String { get }A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.
get customMirror(): SDKHandleSwift declarationvar customMirror: Mirror { get }The custom mirror for this instance. If this type has value semantics, the mirror should be unaffected by subsequent mutations of the instance.
makeIterator(): "section" | "row" | "item" | SDKHandleSwift declarationfunc makeIterator() -> IndexingIterator<IndexPath>Returns an iterator over the nodes of the index path.
get debugDescription(): stringSwift declarationvar debugDescription: String { get }A textual representation of this instance, suitable for debugging. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(reflecting:)` initializer. This initializer works with any type, and uses the custom `debugDescription` property for types that conform to `CustomDebugStringConvertible`: struct Point: CustomDebugStringConvertible { let x: Int, y: Int var debugDescription: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(reflecting: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `debugDescription` property.
get count(): numberSwift declarationvar count: Int { get }The number of elements in the collection. To check whether a collection is empty, use its `isEmpty` property instead of comparing `count` to zero. Unless the collection guarantees random-access performance, calculating `count` can be an O(*n*) operation. - Complexity: O(1) if the collection conforms to `RandomAccessCollection`; otherwise, O(*n*), where *n* is the length of the collection.
indexAfter(i: SDKHandle): SDKHandleSwift declarationfunc index(after i: IndexPath.Index) -> IndexPath.IndexReturns the index that follows the given index.
indexBefore(i: SDKHandle): SDKHandleSwift declarationfunc index(before i: IndexPath.Index) -> IndexPath.IndexReturns the index that precedes the given index.
static initIndex(index: number): IndexPathSwift declarationinit(index: IndexPath.Element)Creates an index path with a single element.
append(other: IndexPath): voidSwift declarationmutating func append(_ other: IndexPath)Appends the nodes of another index path to this one.
append13758(other: Array<number>): voidSwift declarationmutating func append(_ other: Array<IndexPath.Element>)Appends an array of elements to this index path as additional nodes.
append46714(other: number): voidSwift declarationmutating func append(_ other: IndexPath.Element)Appends a single element to this index path as a new node.
compare(other: IndexPath): ComparisonResultSwift declarationfunc compare(_ other: IndexPath) -> ComparisonResultCompares this index path to another in depth-first traversal order.
static initIndexes(indexes: Array<number>): IndexPathSwift declarationinit(indexes: Array<IndexPath.Element>)Creates an index path from an array of elements.
static initIndexes7489(indexes: Array<number>): IndexPathSwift declarationinit<ElementSequence>(indexes: ElementSequence) where ElementSequence : Sequence, ElementSequence.Element == IntCreates an index path from a sequence of integers.
dropLast(): IndexPathSwift declarationfunc dropLast() -> IndexPathReturns a new index path containing all but the last element.
appending(other: IndexPath): IndexPathSwift declarationfunc appending(_ other: IndexPath) -> IndexPathReturns a new index path containing the elements of this one plus those of another index path.
appending32326(other: Array<number>): IndexPathSwift declarationfunc appending(_ other: Array<IndexPath.Element>) -> IndexPathReturns a new index path containing the elements of this one plus an array of additional elements.
appending74034(other: number): IndexPathSwift declarationfunc appending(_ other: IndexPath.Element) -> IndexPathReturns a new index path containing the elements of this one plus the given element.
static init(): IndexPathSwift declarationinit()Creates an empty index path.
subscript(range: SDKHandle): IndexPathSwift declarationsubscript(range: Range<IndexPath.Index>) -> IndexPath { get set }Accesses a contiguous subrange of the index path's nodes.
subscript82543(index: SDKHandle): numberSwift declarationsubscript(index: IndexPath.Index) -> IndexPath.Element { get set }Accesses one of the index path's nodes.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
IndexPath.init(arrayLiteral:)
A variable number of Swift arguments is not supported.