UIImage+GIF.h 765 B

1234567891011121314151617181920212223242526
  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. /**
  11. This category is just use as a convenience method. For more detail control, use methods in `UIImage+MultiFormat.h` or directly use `SDImageCoder`.
  12. */
  13. @interface UIImage (GIF)
  14. /**
  15. Creates an animated UIImage from an NSData.
  16. This will create animated image if the data is Animated GIF. And will create a static image is the data is Static GIF.
  17. @param data The GIF data
  18. @return The created image
  19. */
  20. + (nullable UIImage *)sd_imageWithGIFData:(nullable NSData *)data;
  21. @end