freshOS / KeyboardLayoutGuide

⌨️ KeyboardLayoutGuide, back from when it didn't exist.
MIT License
1.19k stars 60 forks source link

KeyboardLayoutGuide does not update during UIScrollView.KeyboardDismissMode.interactive animation #17

Closed moyerr closed 5 years ago

moyerr commented 5 years ago

On iOS 12, the interactive keyboard dismissal in a scroll view does not fire the keyboardWillChangeFrameNotification until the pan gesture ends, so any views constrained to keyboardLayoutGuide.topAnchor remain static throughout the interactive part of the animation.

I am not sure if this worked properly prior to iOS 12.

shawnthroop commented 5 years ago

@moyerr I also ran into this problem in previous iOS versions. Unfortunately, it’s a limitation in Apple’s API, not a bug.

(I’ve noticed this behavior since at least iOS 9)