In my app I am storing an image in local storage and I am saving the path of that image in my database. How can I load the image from that path?
Here is the code I a
Swift 4:
if FileManager.default.fileExists(atPath: imageUrlPath) { let url = NSURL(string: imageUrlPath) let data = NSData(contentsOf: url! as URL) chapterImage.image = UIImage(data: data! as Data) }