webView(_:didFailProvisionalNavigation:withError:)
Tells the delegate that an error occurred during the early navigation process.
Declaration
optional func webView(_ webView: WKWebView, didFailProvisionalNavigation navigation: WKNavigation!, withError error: any Error)Parameters
- webView:
The web view that called the delegate method.
- navigation:
The navigation object for the operation. This object corresponds to a Wknavigation object that WebKit returned when the load operation began. You use it to track the progress of that operation.
- error:
The error that occurred.