Image Loader for iOS on swift and objective-c languages
Swift Ruby
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DLImageLoader Demo
DLImageLoader
.gitignore
DLImageLoader.podspec
README.md
dlil.png

README.md

DLImageLoader-iOS

Image Loader for iOS.
This project aims to provide a reusable instrument for asynchronous image loading, caching and displaying.

Screenshot

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.

  1. Add a pod entry for DLImageLoader to your Podfile pod 'DLImageLoader', '1.2.0-swift'
  2. 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

Copyright 2013-2014 Andrey Lunevich

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.