Instance Method

load(_:mimeType:characterEncodingName:baseURL:)

Sets the webpage contents and base URL.

Declaration

func load(_ data: Data, mimeType MIMEType: String, characterEncodingName: String, baseURL: URL) -> WKNavigation?

Parameters

data

The data to use as the contents of the webpage.

MIMEType

The MIME type of the data.

characterEncodingName

The data's character encoding name.

baseURL

A URL used to resolve relative URLs within the document.

Return Value

A new navigation.

See Also

Loading Content

var estimatedProgress: Double

An estimate of what fraction of the current navigation has been loaded.

var hasOnlySecureContent: Bool

A Boolean value indicating whether all resources on the page have been loaded through securely encrypted connections.

func loadHTMLString(String, baseURL: URL?)

Sets the webpage contents and base URL.

var isLoading: Bool

A Boolean value indicating whether the view is currently loading content.

func reload()

Reloads the current page.

func reload(Any?)

Reloads the current page.

func reloadFromOrigin()

Reloads the current page, performing end-to-end revalidation using cache-validating conditionals if possible.

func reloadFromOrigin(Any?)

Reloads the current page, performing end-to-end revalidation using cache-validating conditionals if possible.

func stopLoading()

Stops loading all resources on the current page.

func stopLoading(Any?)

Stops loading all resources on the current page.

func loadFileURL(URL, allowingReadAccessTo: URL)

Navigates to the requested file URL on the filesystem