Download and cache images in UITableViewCell
Swift 3: Flickering can be avoided by this way: Use the following code in public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell cell.photoImageView.image = nil //or keep any placeholder here cell.tag = indexPath.row let task = URLSession.shared.dataTask(with: imageURL!) { data, response, error in guard let data = data, error == nil else { … Read more