Creates an index path with a single element.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8.0+
Framework
- Foundation
Creates an index path with a single element.
SDKs
Framework
init()
Creates an empty index path.
init(array Literal: Index Path .Element...)
Creates an index path from an array literal.
init(indexes: Array<Index Path .Element>)
Creates an index path from an array of elements.
init<Element Sequence>(indexes: Element Sequence)
Creates an index path from a sequence of integers.
typealias Index Path .Element
A type that represents one node of an index path.