This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
/*With GCD*/ | |
extension UIImageView { | |
func loadImage(from url: URL?) { | |
guard let url = url else { return } | |
let cache = URLCache.shared | |
let request = URLRequest(url: url) | |
DispatchQueue.global(qos: .background).async { |