Skip to content

progn/Nuke-AnimatedImage-Plugin

 
 

Repository files navigation

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.

About

Animated image plugin for Nuke

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Swift 86.5%
  • Ruby 13.5%