CMImageLoader 1.0.4

CMImageLoader 1.0.4

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jul 2016
SPMSupports SPM

Maintained by celian.



sample

CMImageLoader

Usage

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

Requirements

Installation

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

pod "CMImageLoader"

Usage

//Assuming your UIImageView is an CMImageView
myCMImageView.myCMImageView.assignImageFromURL(url)

//You can add a placeholder image if the load fail
myCMImageView.assignImageFromURL(url, placeholder: UIImage(named: "myPlaceholder.png"))

//You can add a completion block
myCMImageView.assignImageFromURL(url, placeholder: UIImage(named: "myPlaceholder.png")) { () -> Void in
        print("ImageLoaded")
  }

Author

Célian Moutafis , Follow me on Twitter

License

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