---
title: "dataSourceSectionIndex(forPresentationSectionIndex:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uidatasourcetranslating/datasourcesectionindex(forpresentationsectionindex:)"
---

# dataSourceSectionIndex(forPresentationSectionIndex:)

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

## Declaration

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

## Parameters

- `presentationSectionIndex`: The index path of a section in your presentation layer.

## Return Value

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.

## See Also

### Managing section positions

- [presentationSectionIndex(forDataSourceSectionIndex:)](uikit/uidatasourcetranslating/presentationsectionindex(fordatasourcesectionindex:).md)
