Latest | 4.2.0 |
---|---|
Homepage | https://github.com/AndreyLunevich/DLImageLoader-iOS |
License | Apache License, Version 2.0 |
Platforms | ios 8.0 |
Authors |
DLImageLoader-iOS
Image Loader for iOS.
This project aims to provide a reusable instrument for asynchronous image loading, caching and displaying.
Instalation
Swift | DLImageLoader |
---|---|
4.X | – |
2.2 | 1.2.0-swift |
Objective-C – "DLImageLoader", "~> 2.2.0"
Cocoapods
CocoaPods is the recommended way to add DLImageLoader to your project.
- Add a pod entry for DLImageLoader to your Podfile
pod 'DLImageLoader', '1.2.0-swift'
- Install the pod(s) by running
pod install
.
Usage
Simple
DLImageLoader.shared.image(for: "image_url_here", imageView: "UIImageView here")
Complete
DLImageLoader.shared.image(for: "image_url_here") { (image, error) in if let error = error { // if we have no any errors } else { // if we got an error when load an image } }
Cancel loading operations
// === With using of DLImageLoader instance === //
DLImageLoader.shared.cancelOperation(url: "image_url_here")
DLImageLoader.shared.cancelAllOperations()
// === With using of DLImageView === //
DLImageView.cancelLoading()
Plans
Objective-C version will be fully moved to objc branch
Applications using DLImageLoader
Share TV |
Nootri The Nutrition Manager |
Plusarium |
Naomuseum | Aerobia | StreetForm
License
See LICENSE for more information.
Latest podspec
{ "name": "DLImageLoader", "version": "4.2.0", "summary": "DLImageLoader is a reusable instrument for asynchronous image loading and caching.", "description": "DLImageLoader for iOS. nThe library is a reusable instrument for asynchronous image loading, caching and displaying.", "homepage": "https://github.com/AndreyLunevich/DLImageLoader-iOS", "license": { "type": "Apache License, Version 2.0", "file": "LICENSE" }, "authors": { "Andrew Lunevich": "[email protected]" }, "platforms": { "ios": "8.0" }, "source": { "git": "https://github.com/AndreyLunevich/DLImageLoader-iOS.git", "tag": "4.2.0" }, "source_files": [ "DLImageLoader", "DLImageLoader/**/*.swift" ], "swift_version": "4.2" }
Fri, 28 Sep 2018 08:40:29 +0000