iOS Swift - Networking
What is wrong with this code snippet for updating a UIImageView after downloading an image?
URLSession.shared.dataTask(with: url) { data, response, error in
if let data = data {
let image = UIImage(data: data)
imageView.image = image
}
}.resume()
