ReactiveNamespace
public struct ReactiveNamespace
Combine utilities for the ListPublisher are exposed through this namespace. Extend this type if you need to add other Combine Publisher utilities for ListPublisher.
-
The
ListPublisherinstanceDeclaration
Swift
public let base: ListPublisher -
Returns a
Publisherthat emits aListSnapshotwhenever changes occur in theListPublisherlistPublisher.reactive .snapshot(emitInitialValue: true) .sink( receiveCompletion: { result in // ... }, receiveValue: { (listSnapshot) in dataSource.apply( listSnapshot, animatingDifferences: true ) } ) .store(in: &cancellables)Declaration
Swift
public func snapshot(emitInitialValue: Bool = true) -> ListPublisher.SnapshotPublisherParameters
emitInitialValueIf
true, the current value is immediately emitted to the first subscriber. Iffalse, the event fires only starting the nextListSnapshotupdate.Return Value
A
Publisherthat emits aListSnapshotwhenever changes occur in theListPublisher.
View on GitHub
ReactiveNamespace Structure Reference