Contents

ResultsSection

A section of fetched results grouped by a common section key path value.

Declaration

struct ResultsSection<Element, SectionName> where Element : PersistentModel, SectionName : Hashable

Overview

Each section represents a group of elements that share the same value for the sectionBy key path used at creation.

You access sections through sections or Query.sections. Each section conforms to RandomAccessCollection — iterate it directly to access its elements, and use name (or id) to access the section identifier.

Topics

Accessing section properties

See Also

Retrieving sections