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

feat: safe area styling for ios pwa #3693

Merged
merged 2 commits into from
Mar 9, 2025

Conversation

stasadance
Copy link
Contributor

This PR adds required meta tags and some safe area styling for PWA to render correctly on iOS.

I was able to test this by opening iOS Simulator in XCode and going to http:/localhost:3100 in safari, and then pressing share button and saving it to home screen.

Before:

After:

@amir20
Copy link
Owner

amir20 commented Mar 9, 2025

Thanks! I'll check it out tomorrow.

I also have an iPhone but it doesn't do this. Is this a specific model?

@stasadance
Copy link
Contributor Author

Thanks! I'll check it out tomorrow.

I also have an iPhone but it doesn't do this. Is this a specific model?

Depends if you have the notch or not, XCode iOS sim has all of them I think I tested with iPhone 15

@amir20
Copy link
Owner

amir20 commented Mar 9, 2025

I am going to merge this. But I see no difference on my phone and simulator. I am using iPhone 16 and it is below the nudge.

Screenshot 2025-03-09 at 8 29 32 AM

I think what would be nice is to support the nudge on the left.
Screenshot 2025-03-09 at 8 30 50 AM

@amir20 amir20 merged commit e0797d7 into amir20:master Mar 9, 2025
6 of 7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants