loadFileRequest(_:allowingReadAccessTo:)
Loads the web content from the file the URL request object specifies and navigates to that content.
Declaration
func loadFileRequest(_ request: URLRequest, allowingReadAccessTo readAccessURL: URL) -> WKNavigationParameters
- request:
A URL request that specifies the file to display. The URL in this request must be a file-based URL.
- readAccessURL:
The URL of a file or directory containing web content that you grant the system permission to read. This URL must be a file-based URL and must not be empty. To prevent WebKit from reading any other content, specify the same value as the URL parameter. To read additional files related to the content file, specify a directory.
Return Value
A new navigation object you use to track the loading progress of the request.
Discussion
Provide the source of this load request for app activity data by setting the attribution parameter on your request.