Antonio Giarrusso
Antonio Giarrusso

Reputation: 820

Force SFSafariViewController to load the desktop version of a website

As the title suggests, I was wondering if there is a way to force SFSafariViewController to load the desktop version of a website.

Thanks

Upvotes: 3

Views: 1588

Answers (2)

Pradeep K
Pradeep K

Reputation: 3661

You can use WKWebView and then set the customUserAgent property of the web view to any desktop browser user-agent.

Upvotes: 1

Stephen Darlington
Stephen Darlington

Reputation: 52565

As of iOS 9, sadly no. Your best bet might be to create your own web view and use a different user agent as @vizllx suggests in the comments.

Upvotes: 1

Related Questions