Rightpoint / RZDataBinding

Lightweight KVO-based data binding options.
Other
543 stars 57 forks source link

Age stepper in demo not working #60

Open malhal opened 4 years ago

malhal commented 4 years ago

Xcode Version 11.4 13.4 iOS Simulator iPad Pro 9.7"

ZevEisenberg commented 4 years ago

I was able to reproduce this. I wonder if UIStepper lost its key-value observability in iOS 13 or 13.4?

malhal commented 4 years ago

Possibly, in general UIKit isn't supposed to be KVO compliant. That's probably why AppKit bind uses constants like NSValueBinding instead of key paths which I assume adds a target/action.

ZevEisenberg commented 4 years ago

As a possible workaround, if you're committed to using RZDataBinding, would be to subclass UIStepper, have it send a change action to itself, and in the handler, send will/did change messages for the value key path. It's not elegant, but it may be the only way to fix something like this.