---
title: sectionTitles
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uilocalizedindexedcollation/sectiontitles
---

# sectionTitles

Returns the list of section titles for the table view.

## Declaration

```swift
var sectionTitles: [String] { get }
```

## Discussion

Discussion This property contains the localized list of section titles sorted according to the specified ordering (for example, A through Z in US English). In its implementation of tableView(_:titleForHeaderInSection:), the data source can call this method on the indexed-collation object, passing in the section index and returning the result.

## See Also

### Providing section index data to the table view

- [sectionIndexTitles](uikit/uilocalizedindexedcollation/sectionindextitles.md)
- [section(forSectionIndexTitle:)](uikit/uilocalizedindexedcollation/section(forsectionindextitle:).md)
