IdleHandsApps / IHKeyboardAvoiding

IHKeyboardAvoiding is an elegant solution for keeping any UIView visible when the keyboard is being shown - no UIScrollView required!
MIT License
1.41k stars 151 forks source link

Fix calculating keyboard visibility in case if keyboard height is zero #20

Closed kolyasev closed 7 years ago

kolyasev commented 8 years ago

CGRectContainsRect returns true if keyboard frame height is zero. So it causes wrong calculation of _isKeyboardVisible variable.

fraserscottmorrison commented 7 years ago

Hi, Ive just rewritten this library in Swift, and applied your PR to the new code