forked from svga/SVGAPlayer-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSVGAContentLayer.h
More file actions
28 lines (21 loc) · 854 Bytes
/
SVGAContentLayer.h
File metadata and controls
28 lines (21 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// SVGAContentLayer.h
// SVGAPlayer
//
// Created by 崔明辉 on 2017/2/22.
// Copyright © 2017年 UED Center. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SVGAPlayer.h"
@class SVGABitmapLayer, SVGAVectorLayer, SVGAVideoSpriteFrameEntity;
@interface SVGAContentLayer : CALayer
@property (nonatomic, strong) NSString *imageKey;
@property (nonatomic, assign) BOOL dynamicHidden;
@property (nonatomic, copy) SVGAPlayerDynamicDrawingBlock dynamicDrawingBlock;
@property (nonatomic, strong) SVGABitmapLayer *bitmapLayer;
@property (nonatomic, strong) SVGAVectorLayer *vectorLayer;
@property (nonatomic, strong) CATextLayer *textLayer;
- (instancetype)initWithFrames:(NSArray<SVGAVideoSpriteFrameEntity *> *)frames;
- (void)stepToFrame:(NSInteger)frame;
- (void)resetTextLayerProperties:(NSAttributedString *)attributedString;
@end