---
title: "sectionIdentifier(for:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicollectionviewdiffabledatasource-9tqpa/sectionidentifier(for:)"
---

# sectionIdentifier(for:)

Returns an identifier for the section at the index you specify in the collection view.

## Declaration

```swift
@MainActor @preconcurrency func sectionIdentifier(for index: Int) -> SectionIdentifierType?
```

## See Also

### Identifying sections

- [index(for:)](uikit/uicollectionviewdiffabledatasource-9tqpa/index(for:).md)
