public struct SectionedResults<Key, SectionElement> : SectionedResultImpl where Key : _Persistable, Key : Hashable, SectionElement : RealmCollectionValue
extension SectionedResults: RealmSubscribable
SectionedResults
is a type safe collection which holds individual ResultsSection
s as its elements. The container is lazily evaluated, meaning that if the underlying collection has changed a full recalculation of the section keys will take place. A SectionedResults
instance can be observed and it also conforms to ThreadConfined
.
An array of all keys in the sectioned results collection.
DeclarationSwift
public var allKeys: [Key] { get }
Returns the section at the given index
.
Swift
public subscript(index: Int) -> Element { get }
Returns the object at the given IndexPath
.
Swift
public subscript(indexPath: IndexPath) -> SectionElement { get }
A publisher that emits Void each time the sectioned results collection changes.
Despite the name, this actually emits after the sectioned results collection has changed.
DeclarationSwift
public var objectWillChange: RealmPublishers.WillChange<SectionedResults> { get }
A publisher that emits the sectioned results collection each time the sectioned results collection changes.
DeclarationSwift
public var collectionPublisher: RealmPublishers.Value<`Self`> { get }
A publisher that emits the sectioned results collection each time the sectioned results collection changes on the given property keyPaths.
DeclarationSwift
public func collectionPublisher(keyPaths: [String]?) -> RealmPublishers.Value<`Self`>
A publisher that emits a sectioned results collection changeset each time the sectioned results collection changes.
DeclarationSwift
public var changesetPublisher: RealmPublishers.SectionedResultsChangeset<`Self`> { get }
A publisher that emits a sectioned results collection changeset each time the sectioned results collection changes on the given property keyPaths.
DeclarationSwift
public func changesetPublisher(keyPaths: [String]?) -> RealmPublishers.SectionedResultsChangeset<`Self`>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4