CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

LazyImageView 0.1.1

LazyImageView 0.1.1

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
 

LazyImageView

Installation

ImageLoader is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "LazyImageView"

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

How to use

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")

Built With

  • Alamofire - Alamofire is an HTTP networking library written in Swift.
  • AlamofireImage - AlamofireImage is an image component library for Alamofire.

Author

License

LazyImageView is available under the MIT license. See the LICENSE file for more info.