michaeltyson / TPKeyboardAvoiding

A drop-in universal solution for moving text fields out of the way of the keyboard in iOS
http://atastypixel.com/blog/a-drop-in-universal-solution-for-moving-text-fields-out-of-the-way-of-the-keyboard/
zlib License
5.81k stars 925 forks source link

iOS 11 TPKeyboardAvoiding doesn't obey the safeAreaInsets #269

Open asifbilal786 opened 6 years ago

asifbilal786 commented 6 years ago

I am using this amazing library TPKeyboardAvoiding for many years but now I am having problem in iOS 11's. That is new property "safeAreaInsets" which is being introduced by Apple with the release of iPhone X. But TPKeyboardAvoiding doesn't obey the safeAreaInsets and hence doesn't scroll exactly when keyboard appears.

Please resolve this issue.

annypino commented 6 years ago

I'm dealing with this kind of issue too in iPhone X, the scrollview always leave a gap between the safeArea bottom limit and the superview. What can I do? Thank you!

zaidiabbas commented 6 years ago

Same problem here, using bottom layout fix this issue but since iOS 11 Safe Area removes bottom layout

eirikvaa commented 4 years ago

Also having this issue. Any way to fix it?