Contents

webView(_:shouldStartLoadWith:navigationType:)

Sent before a web view begins loading a frame.

Declaration

optional func webView(_ webView: UIWebView, shouldStartLoadWith request: URLRequest, navigationType: UIWebView.NavigationType) -> Bool

Parameters

  • webView:

    The web view that is about to load a new frame.

  • request:

    The content location.

  • navigationType:

    The type of user action that started the load request.

Return Value

true if the web view should begin loading content; otherwise, false .

See Also

Loading Content