I have big image it came from Api then how to load it fast . It Take too much time to load
let data = NSData(contentsOf: NSURL(string: self.imageFile)! as URL)
if data == nil{
}
else{
DispatchQueue.main.async() {
self.imageShow.image = UIImage(data: data! as Data)
}
}
this is my code can any one suggest me