I'm trying to create a webview with some data and an image (from a uimageview) that the app has previously modified. Data 'link' to webview has been easy. But the modified (and still not 'saved', because it's not necessary for the app) image hasn't got a path.
I've tried:
var imageToShow: UIImage!
imageToShow.image = modifiedImage
let stringHTML = "<body>\(data1)<br>\(data2)<br><imgstyle="width: 350px; height: 175px;" alt="" src="\(imageToShow)"><br></body>"// This shows app data, but not the image: \(imageToShow) is not correct
webViewToShow.loadHTMLString(stringHTML, baseURL: nil)
I'm new to swift (3). Thanks in advance.
UIViewControllerwith twoUILabels and anUIImageView?