title: desktop browsing in iOS 13 with WKWebView?
body: <p>According to WWDC 2019 video 203, I should be able to see desktop browsing in a full-screen WKWebView on an iPad. But I'm not seeing it. For example, when I go to google in my WKWebView, I'm clearly seeing the mobile version of the site.</p>
  
  <p>I've tried everything the video suggests. I've set the <code>applicationNameForUserAgent</code>, and the web inspector shows that it is being set as they advise in the video:</p>
  
  <pre><code>"5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/1.0 MyBrowser/1.0"
  </code></pre>
  
  <p>I've also implemented the navigation delegate to request <code>.desktop</code> mode:</p>
  
  <pre><code>func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, preferences: WKWebpagePreferences, decisionHandler: @escaping (WKNavigationActionPolicy, WKWebpagePreferences) -&gt; Void) {
      preferences.preferredContentMode = .desktop
      print("asking for desktop version")
      decisionHandler(.allow, preferences)
  }
  </code></pre>
  
  <p>That method is being called. But I'm still seeing the mobile version of the site.</p>
  
  <p>When I go to the same site in Safari on the same iPad, or if I use an SFSafariViewController, I do see the desktop version of the site, as advertised. How can I get that version of the site in my WKWebView?</p>