Contents

init(filter:sort:animation:sectionBy:)

Creates a sectioned query with sort descriptors, grouped by an optional String key path. Pass nil for the key path to disable sectioning.

Declaration

@MainActor @preconcurrency init(filter: Predicate<Element>? = nil, sort descriptors: [SortDescriptor<Element>] = [], animation: Animation, sectionBy sectionKeyPath: KeyPath<Element, String?>? = nil) where Result == [Element]

See Also

Creating a sorted, sectioned query