Contents

loadRequest(_:)

Connects to a given URL by initiating an asynchronous client request.

Declaration

func loadRequest(_ request: URLRequest)

Parameters

  • request:

    A URL request identifying the location of the content to load.

Discussion

Don’t use this method to load local HTML files; instead, use loadHTMLString(_:baseURL:). To stop this load, use the stopLoading() method. To see whether the receiver is done loading the content, use the isLoading property.

See Also

Loading content