Skip to content

Commit

Permalink
Tweaked docs comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaskubanek committed Jan 29, 2025
1 parent 5c20b7f commit 3a973c8
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ extension KVOCurrentValuePublishing where Self: NSObject {
/// Returns a `CurrentValuePublisher` that tracks the current value of a KVO-compliant property.
///
/// - Parameter keyPath: The key path of the property to observe.
/// - Returns: A `CurrentValuePublisher` that tracks the property's value.
/// - Returns: A `CurrentValuePublisher` that tracks the propertys value.
///
/// This implementation follows the approach of `NSObject.publisher(for:options:)` from Foundation,
/// previously available in the [swift-corelibs-foundation](https://bit.ly/nsobject-keyvalueobserving)
/// This implementation follows the approach of `NSObject.publisher(for:options:)` from
/// Foundation. Its exact up-to-date declaration is difficult to find in Apple’s documentation,
/// as discussed in [this Stack Overflow post](https://stackoverflow.com/q/60381905/670119),
/// but it can be found in an older version of the [swift-corelibs-foundation](https://bit.ly/nsobject-keyvalueobserving)
/// open source repository.
public func currentValuePublisher<Value>(
for keyPath: KeyPath<Self, Value>
Expand Down

0 comments on commit 3a973c8

Please sign in to comment.