Contents

presentationIndexPath(forDataSourceIndexPath:)

Translates an index in your data source object to the equivalent index in your presented layout.

Declaration

func presentationIndexPath(forDataSourceIndexPath dataSourceIndexPath: IndexPath?) -> IndexPath?

Parameters

  • dataSourceIndexPath:

    The index path of an item in the data source object.

Return Value

The index path of the same item in the presentation layer of your object, or nil if the item is not in the presentation layer.

See Also

Managing item positions