Skip to content

Instantly share code, notes, and snippets.

@alvareztech
Created November 16, 2016 02:47
Show Gist options
  • Save alvareztech/c34e9c9d22e0c8963545db934dcaf00a to your computer and use it in GitHub Desktop.
Save alvareztech/c34e9c9d22e0c8963545db934dcaf00a to your computer and use it in GitHub Desktop.
//
// ViewController.swift
// AlamofireImageSample
//
// Created by Daniel Alvarez on 11/15/16.
// Copyright © 2016 Daniel Alvarez. All rights reserved.
// https://github.com/Alamofire/AlamofireImage
//
import UIKit
import AlamofireImage
class ViewController: UIViewController {
@IBOutlet weak var photoImageView: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
photoImageView.af_setImage(
withURL: URL(string: "https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Illimani_La_Paz_April_2014.jpg/250px-Illimani_La_Paz_April_2014.jpg")!,
placeholderImage: nil,
filter: CircleFilter(),
imageTransition: .flipFromBottom(0.5)
)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment