Correct me if I am wrong
if let image = photo.image { self.scalingImageView.image = image self.activityIndicator.stopAnimating() } else if let thumbnailImage = photo.thumbnailImage { self.scalingImageView.image = thumbnailImage self.activityIndicator.stopAnimating() loadFullSizeImage() } else { loadThumbnailImage() }
There is no prediction only for activity indicator.