TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jul 2016 |
SPMSupports SPM | ✗ |
Maintained by celian.
To run the example project, clone the repo, and run pod install
from the Example directory first.
CMImageLoader is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "CMImageLoader"
//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")
}
Célian Moutafis , Follow me on Twitter
CMImageLoader is available under the MIT license. See the LICENSE file for more info.