This patch simply checks that the control's text is different from the value coming in from the binding, and only sets it if they are different. My testing has shown this corrects the bug in UITextView and UITextField with double-width characters.
I bumped the version so the Podfile for our app, which is temporarily pointing at my fork, will pick up these changes.
See https://github.com/manishkkatoch/SimpleTwoWayBindingIOS/issues/15 for an explanation and a repro.
This patch simply checks that the control's text is different from the value coming in from the binding, and only sets it if they are different. My testing has shown this corrects the bug in
UITextView
andUITextField
with double-width characters.I bumped the version so the Podfile for our app, which is temporarily pointing at my fork, will pick up these changes.