Navigates to the requested file URL on the filesystem
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
Framework
- Web
Kit
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 read
references a single file, only that file may be loaded by WebKit. If read
references a directory, files inside that file may be loaded by WebKit.