Generic Initializer

init(indexes:)

Creates an index path from a sequence of integers.

Declaration

init<ElementSequence>(indexes: ElementSequence) where ElementSequence : Sequence, ElementSequence.Element == IndexPath.Element

See Also

Creating Index Paths

init()

Creates an empty index path.

init(index: IndexPath.Element)

Creates an index path with a single element.

init(arrayLiteral: IndexPath.Element...)

Creates an index path from an array literal.

init(indexes: Array<IndexPath.Element>)

Creates an index path from an array of elements.

typealias IndexPath.Element

A type that represents one node of an index path.