I know this question has been asked before but I have a little different situation.
I'm trying to call to loadHTMLString(_ baseURL:)
on WKWebview
and my baseURL is in the AppData/Documents
directory.
I need the HTMLstring
to load and it needs to use the images in that directory. the HTMLstring
is not located anywhere, I download the string parse it, modify it and load it.
As I understand I can't do that because of some sort of security issue (it worked great on UIWebview), so the HTMLstring
is loaded but the images and CSS
are not.
Also, I can't call for loadFileURL(_, allowingReadAccessTo:)
because I don't have a file I have an HTMLstring
and can't save it to file just before the call, because of my own security issues.
My code is huge and has a lot of complexity I would like to achieve loading images in the most painless way.
Does anybody have an idea?