CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | SwiftSwift |
| License | Apache 2 |
| ReleasedLast Release | Sep 2015 |
| SPMSupports SPM | ✗ |
Maintained by Andrew Lunevich.
Alternatively you can directly add the DLImageLoader folder to your project.
DLImageLoader folder onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
DLImageLoader.sharedInstance.displayImageFromUrl("image_url_here", imageView: "UIImageView here")
DLImageLoader.sharedInstance.loadImageFromUrl("image_url_here") { (error, image) -> () in
if (error == nil) {
// if we have no any errors
} else {
// if we got an error when load an image
}
}
DLImageLoader.sharedInstance.loadImageFromUrl("image_url_here", completed: { (error, image) -> () in
if (error == nil) {
// if we have no any errors
} else {
// if we got an error when load an image
}
}) { () -> () in
// image loading was canceled
}
// === With using of DLImageLoader instance === //
DLImageLoader.sharedInstance.cancelOperation("image_url_here")
DLImageLoader.sharedInstance.cancelAllOperations()
// === With using of DLImageView === //
DLImageView.cancelLoading()