Contents

sections

The sections for the fetch results.

Declaration

var sections: [any NSFetchedResultsSectionInfo]? { get }

Discussion

The objects in the sections array implement the NSFetchedResultsSectionInfo protocol.

You typically use the sections array when implementing UITableViewDataSource methods, such as numberOfSections(in:) and tableView(_:titleForHeaderInSection:).

See Also

Querying Section Information