Instance Property


The index path of the element.


var indexPath: IndexPath? { get set }


Use the index path to locate information about the item in your app’s data structures. For supplementary and decoration views, you must also use the representedElementKind property to identify the element.

See Also

Identifying the Element

var representedElementKind: String?

The identifier for specific elements of your collection view interface.

class let elementKindInterItemGapIndicator: String

The element kind string assigned to the attributes object when it represents an inter-item gap.

class let elementKindSectionFooter: String

A supplementary view that acts as a footer for a given section.

class let elementKindSectionHeader: String

A supplementary view that acts as a header for a given section.