---
title: "presentationIndexPath(forDataSourceIndexPath:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uidatasourcetranslating/presentationindexpath(fordatasourceindexpath:)"
---

# presentationIndexPath(forDataSourceIndexPath:)

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

## Declaration

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

## Parameters

- `dataSourceIndexPath`: The index path of an item in the data source object.

## Return Value

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

- [dataSourceIndexPath(forPresentationIndexPath:)](uikit/uidatasourcetranslating/datasourceindexpath(forpresentationindexpath:).md)
