Created
November 21, 2016 15:35
-
-
Save thiagolioy/e8702d51f6f0b83739040f77c402112d to your computer and use it in GitHub Desktop.
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 | |
import Kingfisher | |
extension UIImageView { | |
func download(image url: String) { | |
guard let imageURL = URL(string:url) else { | |
return | |
} | |
self.kf.setImage(with: ImageResource(downloadURL: imageURL)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment