/OfflineWebView

Sample iOS app using WKWebView and .webarchive files to store complete web pages for offline reading

Primary LanguageSwiftMIT LicenseMIT

OfflineWebView

NOTE: The archive generation code from this project has been extracted into a standalone package to make it available via Swift Package Manager. See https://github.com/ernesto-elsaesser/WebArchiver.

This sample iOS app demonstrates how the WebArchiver package can be used to make WKWebView support offline reading for arbitrary web pages. The relevant part is the code in the ContentView.swift file. Change the homeURL argument to test with your own website.

Check the README of the WebArchiver package for more details on its usage and limitations.