dataSourceIndexPath(forPresentationIndexPath:)
Translates an index in your presented layout to the equivalent index in your data source object.
Declaration
func dataSourceIndexPath(forPresentationIndexPath presentationIndexPath: IndexPath?) -> IndexPath?Parameters
- presentationIndexPath:
The index path of an item in your presentation layer.
Return Value
The index path of the same item in the data source object, or nil if the item is no longer in the data source.