loadSimulatedRequest(_:responseHTML:)
Loads the web content from the HTML you provide as if the HTML were the response to the request.
Declaration
func loadSimulatedRequest(_ request: URLRequest, responseHTML string: String) -> WKNavigationParameters
- request:
A URL request that specifies the base URL and other loading details the system uses to interpret the HTML you provide.
- string:
The HTML code you provide in a string to use as the contents of the webpage.
Return Value
A new navigation object you use to track the loading progress of the request.