I am trying to get WKWebView to display locally loaded images in WKWebView
. Web browsing typically displays HTML that is retrieved remotely. HTML content can sometimes contain deleted image links. My application parses HTML and looks for these HTML tags, downloads the file it refers to, and then replaces the remote link with a local one.
Usually this will not be very difficult, but images will not be displayed, presumably due to images and local HTML files for web browsing, located in two separate directories (document directory and application directory, respectively). I have seen people suggest moving image uploads to the same directory as HTML files, but this is not an option for me, since I donβt want to start mixing files downloaded by the user with local assets.
What will be my best course of action here?
source share