Instance Method

load(_:mimeType:textEncodingName:baseURL:)

Sets the main page contents, MIME type, content encoding, and base URL.

Declaration

func load(_ data: Data, mimeType MIMEType: String, textEncodingName: String, baseURL: URL)

Parameters

data

The content for the main page.

MIMEType

The MIME type of the content.

encodingName

The IANA encoding name as in utf-8 or utf-16.

baseURL

The base URL for the content.

See Also

Loading Content

func loadHTMLString(String, baseURL: URL?)

Sets the main page content and base URL.

func loadRequest(URLRequest)

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

var request: URLRequest?

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

var isLoading: Bool

A Boolean value indicating whether the receiver is done loading content.

func stopLoading()

Stops the loading of any web content managed by the receiver.

func reload()

Reloads the current page.