update did fail method
This commit is contained in:
parent
0edc7a8f00
commit
3279ef91fd
@ -148,12 +148,11 @@ extension WebView : WKUIDelegate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public func webView(_ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!) {
|
|
||||||
// show loading
|
public func webView(_ webView: WKWebView, didFailProvisionalNavigation navigation: WKNavigation!, withError error: Error) {
|
||||||
loadingSpinner.resumeSpinner()
|
//actually no error handle page show in webview. We can handle the error display view by our self.
|
||||||
}
|
//or stop loading by default
|
||||||
public func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) {
|
overLayer.isHidden = true
|
||||||
// hide loading
|
|
||||||
loadingSpinner.pause()
|
loadingSpinner.pause()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user