defagos / CoconutKit

CoconutKit is a productivity framework for iOS, crafted with love and focusing on ease of use
Other
1.15k stars 111 forks source link

UITextField bindings not working on iOS 12 #41

Open defagos opened 6 years ago

defagos commented 6 years ago

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

defagos commented 6 years ago

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 commented 6 years ago

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