NSObject.KeyValueObservingPublisher
A Combine publisher that produces a new element whenever the observed value changes.
Declaration
struct KeyValueObservingPublisher<Subject, Value> where Subject : NSObjectOverview
Use this publisher to integrate a property that’s compliant with key-value observing into a Combine publishing chain. You can create a publisher of this type with the NSObject instance method publisher(for:options:), passing in the key path and a set of NSKeyValueObservingOptions.