KImageView is a simple extension to the UIImageView to load images from URL asynchronously.
KImageView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'KImageView'
To run the example project, clone the repo, and run pod install
from the Example directory first.
Declare an UIImageView IBOutlet
@IBOutlet weak var imageView: UIImageView!
self.imageView.imageFromURL(url: "http://www.cartoon-clipart.co/amp/images/scooby-doo.png", indicatorColor: .gray, errorImage: UIImage(named: "replaceWithErrorImage")!)
That's it.
- Alamofire - Alamofire is an HTTP networking library written in Swift.
- AlamofireImage - AlamofireImage is an image component library for Alamofire.
KImageView is available under the MIT license. See the LICENSE file for more info.