HHWebImageGIFCoder.h
1015 Bytes
/*
* This file is part of the HHWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import <Foundation/Foundation.h>
#import "HHWebImageCoder.h"
/**
Built in coder using ImageIO that supports GIF encoding/decoding
@note `HHWebImageIOCoder` supports GIF but only as static (will use the 1st frame).
@note Use `HHWebImageGIFCoder` for fully animated GIFs - less performant than `FLAnimatedImage`
@note If you decide to make all `UIImageView`(including `FLAnimatedImageView`) instance support GIF. You should add this coder to `HHWebImageCodersManager` and make sure that it has a higher priority than `HHWebImageIOCoder`
@note The recommended approach for animated GIFs is using `FLAnimatedImage`. It's more performant than `UIImageView` for GIF displaying
*/
@interface HHWebImageGIFCoder : NSObject <HHWebImageCoder>
+ (nonnull instancetype)sharedCoder;
@end