SVGAContentLayer.h 854 B

12345678910111213141516171819202122232425262728
  1. //
  2. // SVGAContentLayer.h
  3. // SVGAPlayer
  4. //
  5. // Created by 崔明辉 on 2017/2/22.
  6. // Copyright © 2017年 UED Center. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "SVGAPlayer.h"
  10. @class SVGABitmapLayer, SVGAVectorLayer, SVGAVideoSpriteFrameEntity;
  11. @interface SVGAContentLayer : CALayer
  12. @property (nonatomic, strong) NSString *imageKey;
  13. @property (nonatomic, assign) BOOL dynamicHidden;
  14. @property (nonatomic, copy) SVGAPlayerDynamicDrawingBlock dynamicDrawingBlock;
  15. @property (nonatomic, strong) SVGABitmapLayer *bitmapLayer;
  16. @property (nonatomic, strong) SVGAVectorLayer *vectorLayer;
  17. @property (nonatomic, strong) CATextLayer *textLayer;
  18. - (instancetype)initWithFrames:(NSArray<SVGAVideoSpriteFrameEntity *> *)frames;
  19. - (void)stepToFrame:(NSInteger)frame;
  20. - (void)resetTextLayerProperties:(NSAttributedString *)attributedString;
  21. @end