Hello! I'm trying to get a view to remain on screen, but when the keyboard appears it slides up, locked to it. Similar in a sense to the messages view where the input box is always at the bottom of the screen but slides up when the keyboard is shown.
I have previously done this using the keyboardframechanged
event and animating the view to the height of the keyboard, but it's so slow, the keyboard slides up and then about a second later the view slides up and they definitely don't look locked together.
I'm wondering what the best way would be to go about this? Could I possibly take the view out of the normal hierarchy whenever the keyboard is opened and attached it as a toolbar? and then when the keyboard is hidden put it back into the main window?
I'd also like to note this isn't a simple scrollView "keyboard cover the input" issue. I actually want a view locked, pixel-perfect to the top of the keyboard, exactly as a toolbar would be, but to remain on screen when the keyboard is gone.
Thanks!