Skip to content

Complete Animated GIF Support for iOS, with Functions, NSJSONSerialization-style Class, and (Optional) UIImage Swizzling

License

Notifications You must be signed in to change notification settings

jamztang/AnimatedGIFImageSerialization

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AnimatedGIFImageSerialization

AnimatedGIFImageSerialization decodes an UIImage from Animated GIFs image data, following the API conventions of Foundation's NSJSONSerialization class.

Out of the box, UIImage does not support decoding animated gifs into an animated UIImage. So long as ANIMATED_GIF_NO_UIIMAGE_INITIALIZER_SWIZZLING is not #define'd, the this library will swizzle the UIImage initializers to support animated GIFs.

Usage

Decoding

UIImageView *imageView = ...;
imageView.image = [UIImage imageNamed:@"animated.gif"];

Animated GIF


Contact

Mattt Thompson

License

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

About

Complete Animated GIF Support for iOS, with Functions, NSJSONSerialization-style Class, and (Optional) UIImage Swizzling

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Objective-C 100.0%