Does anyone know how to implement composerBar and keyboard appearing like in Facebook messenger?
After scrolling tableView up, a keyboard appears from bottom smoothly and without any jumps .
In my similar implementation it works like this: after scrolling up, when tableView bottom offset < 0, composerBar's input text field become first responder and keyboard jumps to finger.
Yes, I use UIScrollViewKeyboardDismissModeInteractive
.
How does Facebook implement this smooth animation?
Edit: I try to explain how it works in Facebook Messenger, step by step.
I have InputAccessoryView on my viewController (TableViewController). Then I start to scroll TV up (pic 1)
Then, if bottom inset become more then some value (for example 10) (pic 2), I set firstResponder to inputTextField (pic 3)
So, in common case, with 'UIScrollViewKeyboardDismissModeInteractive', keyboard jumps to finger position (pic 4)
BUT! In Facebook Messenger keyboard drags from bottom with distance equal to distance traveled by the finger. (pic 5)
So, facebook messenger somehow control keyboard moving. Question is: how??