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

# presentationSectionIndex(forDataSourceSectionIndex:)

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

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

## Parameters

`dataSourceSectionIndex`

The index path of a section in the data source object.

## Return Value

The index path of the same section in the presentation layer of your object, or `nil` if the section 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)