             loadingVC.dismiss(animated: false, completion: nil)
         } else {
             let requestObj = URLRequest(url: url)
-            webView.loadRequest(requestObj)
+            webView.load(requestObj)
         }
     }
+}
 
-    func webViewDidFinishLoad(_ webView: UIWebView) {
-        self.loadingVC.dismiss(animated: false, completion: nil)
+extension WebViewController: WKNavigationDelegate {
+    func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
+        loadingVC.dismiss(animated: false, completion: nil)
     }
 }
 


    override func viewDidLoad() {
        super.viewDidLoad()
        self.loadUrl(url)

        self.webView.delegate = self
        self.webView.translatesAutoresizingMaskIntoConstraints = false
        self.webView.backgroundColor = .white
        self.view.addSubview(webView)
        PXLayout.pinLeft(view: webView).isActive = true
        PXLayout.pinRight(view: webView).isActive = true
        PXLayout.pinBottom(view: webView).isActive = true

            PXLayout.pinTop(view: webView).isActive = true
        }

        view.backgroundColor = ThemeManager.shared.getMainColor()
        loadingVC.modalPresentationStyle = .fullScreen
        present(loadingVC, animated: false, completion: nil)
    }

    func addNavigationBar() {
