CoconutKit icon indicating copy to clipboard operation
CoconutKit copied to clipboard

UITextField bindings not working on iOS 12

Open defagos opened this issue 6 years ago • 2 comments

With iOS 12 (at least with beta 4), UITextField bindings do not work anymore.

defagos avatar Jul 27 '18 05:07 defagos

The issue is related to the fact that UITextField now implements -didMoveToWindow without calling the super method implementation. Since bindings are set at the UIView level by swizzling this method, they therefore break for UITextField.

defagos avatar Jul 27 '18 05:07 defagos

Fixed in commit 369e3e2967ce45bde4fbd0b3925202994ad91fee. I won't merge the fix until iOS 12 is released, though, since this might change with the final version.

defagos avatar Jul 27 '18 05:07 defagos