Contents

webView(_:didFail:withError:)

Tells the delegate that an error occurred during navigation.

Declaration

optional func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: any Error)

Parameters

  • webView:

    The web view that reported the error.

  • 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.

Mentioned in

See Also

Responding to navigation errors