提交
This commit is contained in:
37
Pods/SVGAPlayer/Source/SVGABitmapLayer.m
generated
Normal file
37
Pods/SVGAPlayer/Source/SVGABitmapLayer.m
generated
Normal file
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// SVGABitmapLayer.m
|
||||
// SVGAPlayer
|
||||
//
|
||||
// Created by 崔明辉 on 2017/2/20.
|
||||
// Copyright © 2017年 UED Center. All rights reserved.
|
||||
//
|
||||
|
||||
#import "SVGABitmapLayer.h"
|
||||
#import "SVGABezierPath.h"
|
||||
#import "SVGAVideoSpriteFrameEntity.h"
|
||||
|
||||
@interface SVGABitmapLayer ()
|
||||
|
||||
@property (nonatomic, strong) NSArray<SVGAVideoSpriteFrameEntity *> *frames;
|
||||
@property (nonatomic, assign) NSInteger drawedFrame;
|
||||
|
||||
@end
|
||||
|
||||
@implementation SVGABitmapLayer
|
||||
|
||||
- (instancetype)initWithFrames:(NSArray *)frames {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
self.backgroundColor = [UIColor clearColor].CGColor;
|
||||
self.masksToBounds = NO;
|
||||
self.contentsGravity = kCAGravityResizeAspect;
|
||||
_frames = frames;
|
||||
[self stepToFrame:0];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)stepToFrame:(NSInteger)frame {
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user