I'm locally loading images into a WKWebView.
I can load local assets by using:
let imgURL = URL(fileURLWithPath: Bundle.main.bundlePath, isDirectory: true)
webView.loadHTMLString(html, baseURL: imgURL)
and reference from my HTML string,
but how can I do the same for an asset in the asset catalogue
<img src="variable" alt="variable">
does not work even though "variable" sits within the asset catalogue..