ResultsSectionCollection
A collection of sections as returned by Sections or Query.sections.
Declaration
struct ResultsSectionCollection<Element, SectionName> where Element : PersistentModel, SectionName : HashableOverview
This is a lightweight RandomAccessCollection of ResultsSection instances, ordered by their first appearance in the sorted results.
Because each section’s name is its identity, the collection provides O(1) lookup by section name via subscript(sectionName:) and contains(sectionName:).
You typically access this collection through sections or Query.sections.