Image Loader for iOS.
This project aims to provide a reusable instrument for asynchronous image loading, caching and displaying.
Swift | DLImageLoader |
---|---|
5.X | _ |
4.X | 4.2.0 |
2.2 | 1.2.0-swift |
Objective-C - "DLImageLoader", "~> 2.2.0"
CocoaPods is the recommended way to add DLImageLoader to your project.
- Add a pod entry for DLImageLoader to your Podfile
pod 'DLImageLoader'
- Install the pod(s) by running
pod install
.
DLImageLoader.shared.load("image_url_here", into: "UIImageView here")
DLImageLoader.shared.load("image_url_here", into: "UIImageView here") { result in switch result { case .success(let image): case .failure(let error): } }
DLImageLoader.shared.cancelOperation(url: "image_url_here")
DLImageLoader.shared.cancelAllOperations()
Objective-C version will be fully moved to objc branch
Share TV | Nootri The Nutrition Manager | Plusarium | Naomuseum | Aerobia | StreetForm
See LICENSE for more information.