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.