indexPath
The index path of the element.
Declaration
var indexPath: IndexPath? { get set }Discussion
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.