-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Blazor Hybrid iOS Safe Areas #6432
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @TanayParikh!
Technically, this may impact non-iOS UIs too, and that's the only risk that I can think of.
I propose we get this merged soon, we have time to notice and react to it before MAUI GA.
I had that concern as well, hence I added |
Glad to see the progress here! |
Final question: is there any straightforward way for a developer to prevent the overscroll/bounce effect when scrolling the root scroll container? Having overscroll at the page root makes it feel like not-a-real-app, since fixed/sticky menus bounce around in a way they wouldn't if it was a native app. This is a longstanding problem for PWAs on iOS that is solvable on Electron. It would be great if this is solvable easily on MAUI too. |
Looks like we need to add a custom handler to disable the bounce on the |
Maui doesn't yet facilitate control of the iOS status bar. Next best alternative is to have an iOS specific placeholder for the status bar, which is what this PR now accomplishes (alongside better support for notch'd devices). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
I totally agree and I believe we should spend some time to fix this up. I've created #6689 to track this. As far as I know, there's no "quick & easy" way to do this, and Apple isn't a fan of users disabling this functionality (I could be mistaken). Take this article for instance which shows how it can be disabled in Chrome/FireFox, but not Safari. The workarounds mentioned have also since been disabled. |
Fixes: #6347
After:

Before:
