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
[Issue] [iPhone X] Notification banner is too short, doesn't extend down far enough to display title. #49
Comments
Does the issue happen on the simulator or the actual device? Can you also post a screenshot? |
Are you sure you are using the latest release? Can you please test on master and the develop branch and tell me your results. |
Just tried develop branch, and I was already using master branch on 2.3.0. Same result I'm afraid.
|
Can you post a sample project inducing the issue for you? That’s the quickest way for me to check why this issue occurs for you. |
I also experienced this problem. On iPhone X, when the navigation bar is hidden, the notification banner would not be displayed properly. I tested this on the simulator, and I use version 2.3.1. |
@sssandyad I am not seeing this issue on my end. Can you guys send a sample project. |
Hi @donileo, |
Oo @sssandyad what did you find to be the solution if you don't mind? |
@harrytutorful I created simple project (https://github.com/sssandyad/testRMessage) as an example to reproduce the bug. But as @donileo said, It can't be reproduced. So I suspected the problem is from our side and it must be related to auto layout stuff and yet I am aware that there are some hacky codes to updating layout view in our project. I found out that when the navigation bar is hidden, RMessage will be subview of while the navigation bar is not hidden, RMessage will be subview of It's rather hacky but here the solutions I can propose for you:
|
@sssandyad Without any changes to your project (without the supposed fix you posted above). Who is the parent view of RMessage for you in your project in the case when the issue happens? @harrytutorful Same question to you. |
Can you guys tell me what the You can call a line like this to show what I need:
Also when are you calling RMessage to present in your view controller? RMessage depends on the safeAreaInsets property of your view to properly present and decide how big to size itself. But according to the Apple docs the safeAreaInsets property might be 0 (which would cause the issue you are seeing) if your view hasn't been fully presented when calling RMessage. That may be the reason why this is happening. |
@donileo in my case, the view controller has feature that when user scrolling down, it will hides navigation bar and when user scrolling up, it will shows the navigation bar. The problem is while RMessage is displaying and I scroll it up or down, the RMessage layout will be broken. My question is why RMessage parent view is different in case of show/hide navigation bar? Is that expected? |
@sssandyad I think your specific case is a bit more different. When RMessage presents it binds to the navigation bar using auto layout, given that in your scenario you are dynamically moving your Navigation bar around its most likely tripping RMessage somehow. This is most likely an RMessage bug but for me to fix it the fastest way would be to send me an Xcode project showing the issue. Doing this will just help me save time fixing the problem considering I’m very busy with other dev things right now. If you guys cant duplicate the issue in an xcodeproj then you will really really have to give me some time to properly diagnose and fix the root cause of how this issue is occurring for you. Rest assured though I really want to fix this 🙂. |
@sssandyad there should be some coming changes that will probably fix this soon! |
@sssandyad @harrytutorful Ok. Please test develop and tell me if this issue still exists for you. I believe cf0473f should do something 😀. |
Awesome! It works like a charm. Thanks 😄 @donileo |
Closing Issue. If not truly fixed feel free to reopen. |
Hi there!
I just started testing on iPhone X and noticed that the top banner (when no nav bar is present) doesn't extend down far enough to show the title and description properly.
This is obviously due to the weird new height measurements of iPhone X's nav bar but I was wondering if this is already a solved issue or if there's something I should be specifically doing to solve this?
Thanks!
This is the code I'm using:
The text was updated successfully, but these errors were encountered: