My Mac app uses a WKWebView to load and display a PDF file from an URL with the following source in Swift:
let webView = WKWebView(frame: view.bounds)
webView.load(URLRequest(url: URL(string: "https://www.africau.edu/images/default/sample.pdf")!))
view = webView
Unfortunately, the "Download" button of the embedded PDF Preview does not work (see below screenshot). My App sandbox has the file access permission for the "Downloads" folder set to Read/write. What am I missing in order to make the download button work?