I have a website within WKWebView that has a link to open a PDF, I want to intercept this so that it brings up a share sheet to save the PDF to the iPhone files app.
New to swift so unsure how to do this, I've tried many solutions from other answers and whilst https://stackoverflow.com/a/60614921/11868620 works well, it saves it to a Documents folder linked to my app rather than the Downloads folder in the Files app.
How do I implement this functionality?