Contents

webView(_:start:)

Asks your handler to begin loading the data for the specified resource.

Declaration

func webView(_ webView: WKWebView, start urlSchemeTask: any WKURLSchemeTask)

Parameters

  • webView:

    The web view that requires the resource.

  • urlSchemeTask:

    The task object that identifies the resource to load. You also use this object to report the progress of the load operation back to the web view.

Discussion

When a web view encounters a resource with your custom URL scheme, it calls this method on the appropriate handler object. Use your implementation of this method to begin loading the resource. Call the methods of the provided WKURLSchemeTask object to report the progress of the loading operation back to the web view. You also use that object to deliver the resource data to the web view.