SVGABitmapLayer.m 810 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // SVGABitmapLayer.m
  3. // SVGAPlayer
  4. //
  5. // Created by 崔明辉 on 2017/2/20.
  6. // Copyright © 2017年 UED Center. All rights reserved.
  7. //
  8. #import "SVGABitmapLayer.h"
  9. #import "SVGABezierPath.h"
  10. #import "SVGAVideoSpriteFrameEntity.h"
  11. @interface SVGABitmapLayer ()
  12. @property (nonatomic, strong) NSArray<SVGAVideoSpriteFrameEntity *> *frames;
  13. @property (nonatomic, assign) NSInteger drawedFrame;
  14. @end
  15. @implementation SVGABitmapLayer
  16. - (instancetype)initWithFrames:(NSArray *)frames {
  17. self = [super init];
  18. if (self) {
  19. self.backgroundColor = [UIColor clearColor].CGColor;
  20. self.masksToBounds = NO;
  21. self.contentsGravity = kCAGravityResizeAspect;
  22. _frames = frames;
  23. [self stepToFrame:0];
  24. }
  25. return self;
  26. }
  27. - (void)stepToFrame:(NSInteger)frame {
  28. }
  29. @end