Skip to content

iosDemos/ImageLoaderSwift

 
 

Repository files navigation

ImageLoader

ImageLoader is an instrument for asynchronous image loading.

Features

  • Simple methods with UIImageView Category.
  • A module for cache can be set by yourself.
  • Loading images is handled by ImageLoader, not UIImageView.
  • After image view start loading another image, previous loading task is possible to live with caching.
  • Comprehensive Unit Test Coverage
  • Optimize image with frame and scale

Requirements

iOS 7.0+ Xcode 6.1

Installation

It is the way to use this in your project:

  • Add ImageLoader as a submodule by opening the Terminal, trying to enter the command
git submodule add https://github.com/hirohisa/ImageLoaderSwift.git
  • Copy ImageLoader class files into your project

Usage

let URL: NSURL = NSURL(string: "http://image")!
imageView.setImage(URL)

or

let URL: NSURL = NSURL(string: "http://image")!
imageView.setImage(URL, placeholder: nil, success: { _ in ...}, failure: { _ in ...})

or

let URL: NSURL = NSURL(string: "http://image")!
imageView.setImage(URL, placeholder: nil, completion: { _ in ... })

License

ImageLoader is available under the MIT license.

About

ImageLoader is an instrument for asynchronous image loading.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 93.8%
  • Ruby 4.4%
  • Objective-C 1.8%