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
iPhone X input bar selecting bug #514
Comments
Hey, @Ogerets Can you provide your environment and Chatto version? Looks ok for me. Checked on the latest master on iPhoneX 11.4 simulator in Xcode 9.4.1 |
I faced problem while using Chatto 3.1.1 in my project. Then I checked sample ChattoApp from the latest master (commit 3e29fb1). I used Xcode 9.4.1 and iPhone8 11.4 simulator for taking the screenshot. Now I still can reproduce this bug on iPhoneX 12.0 simulator in XCode 10.0. The new thing I noticed: after app launched the first switch between photo and text input item is fine, next ones - produce bug. |
I am experiencing the same bug as well. Selecting the keyboard or photo icon will display okay the first time but selecting a second time will produce the issue. Using Xcode 9.4.1. and iPhone X iOS 11.4 |
Seeing same issue on my side. Could this be related to https://forums.developer.apple.com/thread/108775? I'm seeing different values for UIKeyboardFrameEndUserInfoKey. |
Seems like an iOS 12 issue. Here is an example: https://github.com/AntonPalich/KeyboardIssueExample |
@AntonPalich Me and gdelarosa just said above that we experienced this issue on iOS 11.4. So it's not an iOS 12 issue. |
@Ogerets I've tried on different simulators (iPhone 8, 8 Plus, X) on iOS 11.4 but was never able to reproduce the issue. Maybe, I was extremely lucky. If you check out an example project you will see that this issue is reproducible on iOS 12 only, but not on iOS 11.4. Could you, please, help me to understand what am I doing wrong? Can you record a video or provide steps to reproduce? I've tried with your steps (attached a video ios_11.4.zip ~20 Mb) but didn't encounter the issue. Sorry, but I can't fix something that I can't reproduce. |
@AntonPalich I've just checked and can confirm that issue no longer reproducable on iOS 11.4. Only iOS 12. Is it some sort of weird Apple magic after updates? Sorry for disturbing, just wanted help you. |
I believe this is an iOS bug. (Tested on iOS 12) The default behavior for when you switch the inputView on a textView is for the custom inputView to have the same height as the system-keyboard For some reason this behavior doesn't work as expected on bezel-less iPhones. The height given to the custom inputView is actually smaller than the system-keyboard. Also, even though the height is different the To work around this you would have to set a custom height to your inputView, as this will cause the P.S: I'm not actually using Chatto atm. How to setup your custom inputView with a fixed height: So I used this instead (I'm not sure about Chatto but this how I fixed it for my Project) |
@amedakedo Thank you for such great help! I've fixed the issue in #530 |
@AntonPalich sure No problem 👍 |
Steps to reproduce in sample ChattoApp
The text was updated successfully, but these errors were encountered: