I\'ve been using SDWebImage on my iPhone app to handle all of the image loading. I am using a placeholder image, and I want to crossfade or fade in the new image once it loads.
Here is the code which help me out and working great.
photoImageView.sd_imageTransition = .fade photoImageView.sd_setImage(with: URL(string: imageUrl), completed: nil)