Skip to content

chore: improve detection of iOS devices #391

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

Closed
wants to merge 5 commits into from

Conversation

tomoam
Copy link
Contributor

@tomoam tomoam commented May 16, 2023

ref #306 (comment)


As noted in #306 (comment), I feel it would be better to let the user know about it and give them the option to run it or not, similar to Stackblitz. And this PR implements it.

If the user's device OS is iOS/iPad OS and Safari is 16.4 or higher, the following will be displayed:

  • iPhone
image
  • iPad
image

If the 'Run the tutorial' button is pressed, Webcontainer will be booted.

@vercel
Copy link

vercel bot commented May 16, 2023

@tomoam is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@tomoam tomoam marked this pull request as ready for review May 17, 2023 03:24
@benmccann
Copy link
Member

This is probably no longer needed since #395

@benmccann benmccann closed this Jun 16, 2023
@benmccann
Copy link
Member

Thanks!!

@tomoam
Copy link
Contributor Author

tomoam commented Jul 15, 2023

@benmccann
This problem is not solved by #395.
Memory pressure of WebContainer prevents learn.svelte.dev from working on non-powerful iOS devices.

Nevertheless, this PR has conflicts, so I will create another PR again.

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