UIImage+GIF.h 663 B

12345678910111213141516171819202122232425
  1. /*
  2. * This file is part of the SDWebImage package.
  3. * (c) Olivier Poitrey <rs@dailymotion.com>
  4. * (c) Laurin Brandner
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. #import "SDWebImageCompat.h"
  10. @interface UIImage (GIF)
  11. /**
  12. * Creates an animated UIImage from an NSData.
  13. * For static GIF, will create an UIImage with `images` array set to nil. For animated GIF, will create an UIImage with valid `images` array.
  14. */
  15. + (UIImage *)sd_animatedGIFWithData:(NSData *)data;
  16. /**
  17. * Checks if an UIImage instance is a GIF. Will use the `images` array.
  18. */
  19. - (BOOL)isGIF;
  20. @end