by sandofsky · 11y ago · 0 comments
Interactive dismissal only made possible with UIScrollViewKeyboardDismissModeInteractive introduced since iOS 7.
This article described solution for interactive dismissal with `sticky` input field atop the keyboard.
Create a constraint that attaches the input field to the bottom of the scrollview.
One tradeoff is that dismissal doesn't start until your touch enters the real keyboard area. I'll take it, since it's safer than using KVO to observe private APIs.
The library is not really using KVO to observe private APIs, bounds/center of UIView is public property.