项目作者: SDWebImage

项目描述 :
APNG Coder for SDWebImage
高级语言: Objective-C
项目地址: git://github.com/SDWebImage/SDWebImageAPNGCoder.git
创建时间: 2017-11-02T15:17:57Z
项目社区:https://github.com/SDWebImage/SDWebImageAPNGCoder

开源协议:MIT License

下载


SDWebImageAPNGCoder

CI Status
Version
License
Platform

Note

The APNG format coder plugin, is already one of built-in plugins in SDWebImage 5.0. To support APNG format, use SDImageAPNGCoder class instead.

This repo is deprecated and only support SDWebImage 4.x version.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

This is a demo to show how to build animated coder which use coder helper from SDWebImage. Althrough this code is nearly same with GIF coder, but it can be a good demo to look in.

Requirements

  • iOS 8
  • macOS 10.10
  • tvOS 9.0
  • watchOS 2.0

Installation

SDWebImageAPNGCoder is available through CocoaPods. To install
it, simply add the following line to your Podfile:

  1. pod 'SDWebImageAPNGCoder'

Usage

  1. SDWebImageAPNGCoder *APNGCoder = [SDWebImageAPNGCoder sharedCoder];
  2. [[SDWebImageCodersManager sharedInstance] addCoder:APNGCoder];
  3. UIImageView *imageView;
  4. NSURL *APNGURL;
  5. [imageView sd_setImageWithURL:APNGURL];

Screenshot

Author

DreamPiggy

License

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