CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.
TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Mar 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Muhammad Maaz Ul Haq.
Depends on: | |
Alamofire | >= 0 |
AlamofireImage | >= 0 |
ImageLoader is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "LazyImageView"
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: "https://s-media-cache-ak0.pinimg.com/originals/a6/6d/c3/a66dc359b05119ce205fa35d47665f01.jpg", indicatorColor: .gray, errorImage: UIImage(named: "replaceWithErrorImage")!, imageView: self.imageView)
That’s it.
To remove the image from cahce.
self.imageView.RemoveImage(url: "https://s-media-cache-ak0.pinimg.com/originals/a6/6d/c3/a66dc359b05119ce205fa35d47665f01.jpg")
LazyImageView is available under the MIT license. See the LICENSE file for more info.