---
title: "presentationSectionIndex(forDataSourceSectionIndex:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uidatasourcetranslating/presentationsectionindex(fordatasourcesectionindex:)"
---

# presentationSectionIndex(forDataSourceSectionIndex:)

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

## Declaration

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

## Parameters

- `dataSourceSectionIndex`: The index path of a section in the data source object.

## Return Value

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.

## See Also

### Managing section positions

- [dataSourceSectionIndex(forPresentationSectionIndex:)](uikit/uidatasourcetranslating/datasourcesectionindex(forpresentationsectionindex:).md)
