Recent | Popular
#ios #swift #swift4
let url = URL(string: image.url) let data = try? Data(contentsOf: url!) //make sure your image in this url does exist, otherwise unwrap in a if let check / try-catch imageView.image = UIImage(data: data!)
Sun Jan 12 2020 17:30:26 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/24231680/loading-downloading-image-from-url-on-swift