indexPath
The index path of the item in the collection view.
Declaration
var indexPath: IndexPath { get set }Discussion
The index path contains the index of the section and the index of the item within that section. These two values uniquely identify the position of the corresponding item in the collection view.