SDWebImageGIFCoder.h 1015 B

1234567891011121314151617181920212223
  1. /*
  2. * This file is part of the SDWebImage package.
  3. * (c) Olivier Poitrey <rs@dailymotion.com>
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. */
  8. #import <Foundation/Foundation.h>
  9. #import "SDWebImageCoder.h"
  10. /**
  11. Built in coder using ImageIO that supports GIF encoding/decoding
  12. @note `SDWebImageIOCoder` supports GIF but only as static (will use the 1st frame).
  13. @note Use `SDWebImageGIFCoder` for fully animated GIFs - less performant than `FLAnimatedImage`
  14. @note If you decide to make all `UIImageView`(including `FLAnimatedImageView`) instance support GIF. You should add this coder to `SDWebImageCodersManager` and make sure that it has a higher priority than `SDWebImageIOCoder`
  15. @note The recommended approach for animated GIFs is using `FLAnimatedImage`. It's more performant than `UIImageView` for GIF displaying
  16. */
  17. @interface SDWebImageGIFCoder : NSObject <SDWebImageCoder>
  18. + (nonnull instancetype)sharedCoder;
  19. @end