IndexPath
struct IndexPath : ReferenceConvertible, Equatable, Hashable, MutableCollection, RandomAccessCollection, Comparable, ExpressibleByArrayLiteral
Provides support for OSX < 10.11 and provides some helpful additions
-
Create an index path with a given item and section
Note
item and section must be >= 0
Declaration
Swift
public static func `for`(item: Int = 0, section: Int) -> IndexPath
Parameters
item
An item
section
A section
Return Value
An initialized index path with the item and section
-
Returns the item of the index path
Declaration
Swift
public var _item: Int { get }
-
Returns the section of the index path
Declaration
Swift
public var _section: Int { get }