I am using the following code to display a website in my app.
let webVC = SFSafariViewController(url: myUrl)
present(webVC, animated: true)
Now, I want to add offline reading. I know that iOS has a reading list, which apparently caches articles for offline use, but I could not find anything related in either the documentation for SFSafariViewController or elsewhere.
The only similar post I could find was this one (Swift iOS Cache WKWebView content for offline view) although it depends on WKWebView and writing a custom web archive exporter.
There must be a better way to achieve offline capabilities for SFSafariViewController, considering that it is newer and the recommended in-app method, and that Safari itself utilises an offline-mode for the iOS reading list. Any help?