Files
featherVoice/Pods/SVGAPlayer/Source/SVGABitmapLayer.m

38 lines
810 B
Mathematica
Raw Normal View History

2025-08-08 10:49:36 +08:00
//
// 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