Instance Method

loadFileURL(_:allowingReadAccessTo:)

Navigates to the requested file URL on the filesystem

Declaration

func loadFileURL(_ URL: URL, allowingReadAccessTo readAccessURL: URL) -> WKNavigation?

Parameters

URL

The file URL to navigate to.

readAccessURL

The URL to allow read access to.

Return Value

A new navigation for the given file URL.

Discussion

If readAccessURL references a single file, only that file may be loaded by WebKit. If readAccessURL references a directory, files inside that file may be loaded by WebKit.

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.