<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDataSourceTranslating/presentationIndexPath(forDataSourceIndexPath:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIDataSourceTranslating(im)presentationIndexPathForDataSourceIndexPath:"
  },
  "title" : "presentationIndexPath(forDataSourceIndexPath:)"
}
-->

# presentationIndexPath(forDataSourceIndexPath:)

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)