Contents

loadSimulatedRequest(_:response:responseData:)

Loads the web content from the data you provide as if the data were the response to the request.

Declaration

func loadSimulatedRequest(_ request: URLRequest, response: URLResponse, responseData data: Data) -> WKNavigation

Parameters

  • request:

    A URL request that specifies the base URL and other loading details the system uses to interpret the data you provide.

  • response:

    A response the system uses to interpret the data you provide.

  • data:

    The data to use as the contents of the webpage.

Return Value

A new navigation object you use to track the loading progress of the request.

See Also

Loading web content