SDWebImageFrame.m 694 B

12345678910111213141516171819202122232425262728
  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 "SDWebImageFrame.h"
  9. @interface SDWebImageFrame ()
  10. @property (nonatomic, strong, readwrite, nonnull) UIImage *image;
  11. @property (nonatomic, readwrite, assign) NSTimeInterval duration;
  12. @end
  13. @implementation SDWebImageFrame
  14. + (instancetype)frameWithImage:(UIImage *)image duration:(NSTimeInterval)duration {
  15. SDWebImageFrame *frame = [[SDWebImageFrame alloc] init];
  16. frame.image = image;
  17. frame.duration = duration;
  18. return frame;
  19. }
  20. @end