I am trying to display an image from a URL in swift using the code below but nothing appears.
let url = NSURL(string: "https://www.psychicliving.co.uk/images/Michael.jpg")
if let data = NSData(contentsOf: url as! URL) {
cell.imgCarNane.image = UIImage(data: data as Data)
}
The odd thing is that if I substitute the image for a jpeg hosted on a different site like:
it displays fine.
Is there something about the image I am trying to use that would be causing the issue?
if someone could take a look I would be very greatful.
Thanks!