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

Set custom user agent to iOS 4 #57

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jawshoeadan
Copy link

This changes the user agent within Safari to be that of an iPhone 4 on iOS 4. This allows sites like JailbreakMe to load correctly and many sites like Google load differently when they parse this user agent as seen here:
Current:
IMG_0674
IMG_0677

With this change:
IMG_0675
IMG_0676

Copy link

@lgrachov lgrachov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good! Ready to merge, but I didn't know that in SwiftUI you can set custom UserAgent in WebView! 🌝😀

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