What Is an indexPath in Swift?

In Swift, an indexPath is a list of indexes that, together, represent the path to a specific location in a tree of nested arrays.

It describes an item’s position inside a table view or collection view, storing both its section and its position inside that section.