Creates a subscriber to assign the value of a property indicated by a key path.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
The object that contains the property. The subscriber assigns the object’s property every time it receives a new value.
A key path that indicates the property to assign. See Key-Path Expression in The Swift Programming Language to learn how to use key paths to specify a property of an object.