0

I am loading local html file which will load first and then I will have to load an image that is also available locally only after the html is loaded fully. So, I am setting src for the image tag using id and evaluateJavascript. WKURLSchemeHander delegate is not called when this evaluateJavascript is loaded. It is called only when loadFile or loadHTMLString is called. How do I make this delegate get called during evaluateJavascript function and load the image on to WKWebview?

 let js = "document.getElementById('image-id').setAttribute('src', '\(imageURL)');"
nOOb iOS
  • 1,356
  • 2
  • 17
  • 33

0 Answers0