LOTAnimatedControl.h 710 B

12345678910111213141516171819202122232425262728
  1. //
  2. // LOTAnimatedControl.h
  3. // Lottie
  4. //
  5. // Created by brandon_withrow on 8/25/17.
  6. // Copyright © 2017 Airbnb. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class LOTAnimationView;
  10. @class LOTComposition;
  11. @interface LOTAnimatedControl : UIControl
  12. // This class is a base class that is intended to be subclassed
  13. /**
  14. * Map a specific animation layer to a control state.
  15. * When the state is set all layers will be hidden except the specified layer.
  16. **/
  17. - (void)setLayerName:(NSString * _Nonnull)layerName forState:(UIControlState)state;
  18. @property (nonatomic, strong, readonly, nonnull) LOTAnimationView *animationView;
  19. @property (nonatomic, strong, nullable) LOTComposition *animationComp;
  20. @end