<!--
{
  "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/dataSourceSectionIndex(forPresentationSectionIndex:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIDataSourceTranslating(im)dataSourceSectionIndexForPresentationSectionIndex:"
  },
  "title" : "dataSourceSectionIndex(forPresentationSectionIndex:)"
}
-->

# dataSourceSectionIndex(forPresentationSectionIndex:)

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

```
func dataSourceSectionIndex(forPresentationSectionIndex presentationSectionIndex: Int) -> Int
```

## Parameters

`presentationSectionIndex`

The index path of a section in your presentation layer.

## Return Value

The index path of the same section in the data source object, or `nil` if the section is no longer in the data source.

---

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)