---
title: "dataSourceIndexPath(forPresentationIndexPath:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uidatasourcetranslating/datasourceindexpath(forpresentationindexpath:)"
---

# dataSourceIndexPath(forPresentationIndexPath:)

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

## Declaration

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

## Parameters

- `presentationIndexPath`: The index path of an item in your presentation layer.

## Return Value

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.

## See Also

### Managing item positions

- [presentationIndexPath(forDataSourceIndexPath:)](uikit/uidatasourcetranslating/presentationindexpath(fordatasourceindexpath:).md)
