Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Foundation
- import Alamofire
- import AlamofireImage
- extension UIImageView {
- func loadImage(imageURL: String) {
- Alamofire.request(imageURL).responseImage { response in
- if let image = response.result.value {
- //set image
- } else {
- //TODO: Add failure block
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement