ReactiveSwift icon indicating copy to clipboard operation
ReactiveSwift copied to clipboard

Change keypath `BindingTarget.init` to solve source breaking change in SE-0481

Open mluisbrown opened this issue 6 months ago • 0 comments

Fixes: #889

SE-0481 would break the current version of the BindingTarget.init that takes a keypath. Changing the keypath type from WritableKeyPath to ReferenceWritableKeyPath fixes this, and is probably what the type should always have been, since Object will always be a reference type.

Despite the signature of the initalizer changing, this is unlikely to break existing code using it, as the keypath is almost always passed using keypath notation (eg : \.property) and not using an explicit keypath type.

Checklist

  • [x] Updated CHANGELOG.md.

mluisbrown avatar Jun 09 '25 16:06 mluisbrown