Skip to content
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

Toast appears behind keyboard, not visible to user #31

Closed
artworkad opened this issue Jul 29, 2015 · 9 comments
Closed

Toast appears behind keyboard, not visible to user #31

artworkad opened this issue Jul 29, 2015 · 9 comments

Comments

@artworkad
Copy link

If the software keyboard is visible toast message appear behind the keyboard not in front of it.

Use case: validation of text inside text field. You want the keyboard to be present however you also want to display a toast. BUT the toast should not block interaction with keyboard.

@devxoul
Copy link
Owner

devxoul commented Jul 29, 2015

Hi @artworkad,

I've just made a new PR for this issue: #32
Could you please check this?

Thanks 😄

@artworkad
Copy link
Author

@devxoul It works perfectly. However there is a little issue with the opacity. I would like to reduce opacity to make the text more readable, but only when I show it over a keyboard. Is this possible? I would like to do e.g.

JLToast.makeText("FooBar", opacity: 0.95).show()

@devxoul
Copy link
Owner

devxoul commented Jul 30, 2015

@artworkad,

You can access JLToastView from JLToast instance then set alpha.

let toast = JLToast.makeText("FooBar")
toast.view.alpha = 0.95
toast.show()

@artworkad
Copy link
Author

@devxoul thank you, please upload this update to cocoapods 💃

@devxoul
Copy link
Owner

devxoul commented Jul 30, 2015

@artworkad
Finished! https://cocoapods.org/pods/JLToast 😄

@artworkad
Copy link
Author

The keyboard issue appears in iOS9 again. The toast is behind the keyboard.

@devxoul
Copy link
Owner

devxoul commented Sep 19, 2015

@artworkad, I've made a new PR to fix this issue: #42

@artworkad
Copy link
Author

@devxoul 😄 just tested, it works. Please merge and update to cocoapods. Grazi 👍

@devxoul
Copy link
Owner

devxoul commented Sep 19, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants