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.