Contents

NSObject.KeyValueObservingPublisher

A Combine publisher that produces a new element whenever the observed value changes.

Declaration

struct KeyValueObservingPublisher<Subject, Value> where Subject : NSObject

Overview

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.

Topics

Creating a KVO Publisher

Inspecting KVO Publisher Properties

Instance Methods