Skip to content

Simple cache images while downloading images. You do not need to download the same picture over and over again during the cache age. Easy to use.

License

Notifications You must be signed in to change notification settings

orucanil/AlamofireImageCache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AlamofireImageCache

Using AlamofireImage and ANWCacheManager, you can cache images while downloading images. You do not need to download the same picture over and over again during the cache age. Easy to use.

Installation

To use the AlamofireImageCache in an app, install AlamofireImage and just drag the AlamofireImageCache files in Classes folder (demo files and assets are not needed) into your project. ( https://github.com/Alamofire/AlamofireImage ). Add "#import <CommonCrypto/CommonCrypto.h>" into Bridging-Header.

Properties

The AlamofireImageCache has the following properties (note: for iOS, UIImageView when using properties):

var isImageLoading: Bool

Image loading flag.

Methods

The AlamofireImageCache has the following methods (note: for iOS, UIImageView in method arguments):

func setImage(urlString: String?, closure: LoadImageClosure? = nil)

Image loading method with url string and complition block. (Use AlamofireImage for image loading. When finished loading, cached image.)

How to use ?

imageView.setImage(urlString: "http://static2.bergfex.com/images/downsized/12/e185569f232e7012_8317a8e7573a6a43.jpg")

Build and run the project files. Enjoy more examples!

About

Simple cache images while downloading images. You do not need to download the same picture over and over again during the cache age. Easy to use.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages