One Logo Pool Ball
Combine · IOS API REFERENCE

CurrentValueSubject

class · iOS 13.0+ · SDK 27.1

final class CurrentValueSubject<Output, Failure> where Failure : Error

A subject that wraps a single value and publishes a new element whenever the value changes. Unlike ``PassthroughSubject``, ``CurrentValueSubject`` maintains a buffer of the most recently published element. Calling ``CurrentValueSubject/send(_:)`` on a ``CurrentValueSubject`` also updates the current value, making it equivalent to updating the ``CurrentValueSubject/value`` directly.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

CurrentValueSubject.receive(subscriber:)

This declaration needs Swift generic type arguments. (no canonical witness for S)

All Combine types →