Hi,
I use the last Xcode last version, and Swift for create an application but I have a little problem.
Application interface is make with HTML load in WKWebView, and I use javascript to dialog between the core's app and the html (UI).
The app transfert an array of string containing image's absolute path (get with requestContentEditingInput) to the HTML. Goal is to show images in the HTML page.
So I get absolute path to image (like file:///var/mobile/Media/DCIM/100APPLE/IMG_0002.PNG) , but HTML page don't show it, show simply a blank picture...
I think it's security problem, but how to show this pictures??
Can you help me ?
I try to authorize access picture for WKWebView like this :
let urlacces = URL(string:"file:///var/mobile/Media/DCIM/100APPLE/")!
webview.loadFileURL(url, allowingReadAccessTo: urlacces)Thanks,