-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I show a message that appears above the keyboard, when the keyboard is already visible? #533
Comments
I'm super busy, but I will do my best to take a look at this soon. It is a fairly obscure feature, so I wouldn't be surprised if it has some rough edges. |
I took a look and found a couple of issues: First, I have a slightly modified version of
Again, this stuff was designed before safe area existed :( I'm not going to have time to rework the layout system for this particular issue. However, if you're willing to use your own view that internally constrains the content to bottom safe area, rather than one of the bundled nib files, I think my updated Let me know what you think. |
Awesome, thanks for looking into this. I saw you made some changes in 9.0.9, so I'll play around with that and creating our own view and let you know how it goes. |
The idea with the updated |
Great! I've installed a |
If I do
config.keyboardTrackingView = KeyboardTrackingView()
, I can show a message and then make the keyboard visible, and the message slides up so that it remains above the keyboard (though I do see the issue mentioned in #496). However, once the keyboard is visible, if I show another message, it appears at the bottom of the view, behind the keyboard.Next I tried creating and installing a
KeyboardTrackingView
into my view controller's view hierarchy and setting that as theconfig.keyboardTrackingView
. Then if I show a message after the keyboard is up, the message appears above the keyboard. However, if I dismiss the keyboard, bring the keyboard back up, and then show another message, the message appears behind the keyboard.Finally, I tried creating and installing a
KeyboardTrackingView
into my view controller's view hierarchy and then creating anotherUIView
with its top anchored to the top of the viewController's view and its bottom anchored to the top of theKeyboardTrackingView
and then using that view for thepresentationContext
. This generally seems to work (though it also suffered from the issue mentioned in #496). Would this be the recommended approach or should it work when using theconfig.keyboardTrackingView
?The text was updated successfully, but these errors were encountered: