sections
The sections computed from the current results, grouped by Sectionby.
Declaration
final var sections: ResultsSectionCollection<Element, SectionName>? { get set }Discussion
Returns nil if this observer was created without a sectionBy key path (i.e. SectionName == Never). When sectioning is enabled, returns a ResultsSectionCollection 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.