Loading Twitter in WKWebView not Supported

so I'm trying to load twitter in a WKWebView on my iPad Pro. But whenever I load it up in my app it says browser not supported.

Here is what I have currently tried,
Code Block
var wk = WKWebView()
wk.configuration.preferences.javaScriptEnabled = true
self.view = wk
wk.load(URLRequest(url: URL(string: "https://www.twitter.com")!))

Is there something that I am missing? Or can somebody else reproduce and maybe it is twitter's problem? Thanks

I tried as follow, and it works ok:

Code Block
import UIKit
import WebKit
class ViewController: UIViewController {
 
    var wkWebView: WKWebView!
    override func loadView() {
      let webConfiguration = WKWebViewConfiguration()
      wkWebView = WKWebView(frame: .zero, configuration: webConfiguration)
      wkWebView.configuration.preferences.javaScriptEnabled = true
      view = wkWebView
    }
   
    override func viewDidLoad() {
      super.viewDidLoad()
      startLoad()
    }
     
    private func startLoad(){
      wkWebView.load(URLRequest(url: URL(string: "https://www.twitter.com")!))
    }
}


Loading Twitter in WKWebView not Supported
 
 
Q