When I'm trying to load a web page I'm using this part of code:
I could see a delay from 1-3 seconds before to show the page even if I change the url.
That delay is normal?
I tried with both options:
Code Block let myURL = URL(string:"https://www.apple.com") let myRequest = URLRequest(url: myURL!) print(Date())/*Start time 11:47:28*/ self.myWV.load(myRequest)
I could see a delay from 1-3 seconds before to show the page even if I change the url.
Code Block func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { print(Date())/*End time 11:47:30*/ }
That delay is normal?
I tried with both options:
Added a WKWebView in the Storyboard
Added a WKWebView programmatically.