Nuke-AnimatedImage-Plugin 1.0.0

Nuke-AnimatedImage-Plugin 1.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2016
SPMSupports SPM

Maintained by kean.



 
Depends on:
Nuke~> 3.0
FLAnimatedImage~> 1.0
 

FLAnimatedImage plugin for Nuke that allows you to load and display animated GIFs.

Usage

Create Image Manager

  • AnimatedImageDecoder creates AnimatedImages from received data
  • AnimatedImageLoaderDelegate prevents ImageLoader from processing AnimatedImages
  • AnimatedImageMemoryCache calculates proper cost for animated images, can also be used to disable animated images storage all together
let decoder = ImageDecoderComposition(decoders: [AnimatedImageDecoder(), ImageDecoder()])
let loader = ImageLoader(configuration: ImageLoaderConfiguration(dataLoader: <#dataLoader#>, decoder: decoder), delegate: AnimatedImageLoaderDelegate())
let cache = AnimatedImageMemoryCache()

ImageManager.shared = ImageManager(configuration: ImageManagerConfiguration(loader: loader, cache: cache))

Use FLAnimatedImageView Extension

Nuke adds full-featured image loading extension to FLAnimatedImageView

let imageView = FLAnimatedImageView()
imageView.nk_setImageWith(<#imageRequest#>) // Loads animated image and starts playback

Installation

See Nuke for installation instructions.

Requirements

  • iOS 8.0+
  • Xcode 7.3+, Swift 2.2+

Contacts

License

Nuke is available under the MIT license. See the LICENSE file for more info.