Determinate finish loading website in webView with Swift in Xcode

Through the UIWebView delegate call.

You need to set your webViews delegate to the current controller, and conform to the UIWebViewDelegate protocol. When the webView finished loading the page func webViewDidFinishLoad(_ webView: UIWebView) will get called.

Leave a Comment