Contents

sections

The sections computed from the current results, grouped by Sectionby.

Declaration

final var sections: SectionedResults<Element, SectionTitle>? { get set }

Discussion

Returns nil if this observer was created without a sectionBy key path (i.e. SectionTitle == Never). When sectioning is enabled, returns a SectionedResults of sections ordered by their first appearance in the sorted results.

The sectionBy key path is automatically prepended as the first sort descriptor at initialization, and re-prepended if sortBy is mutated, ensuring results are always contiguous within each section.

See Also

Accessing observer properties