YLSingleText.h 730 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // YLSingleText.h
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2020/3/11.
  6. // Copyright © 2020 翟玉磊. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface YLSingleText : NSObject
  11. @property (nonatomic, copy ) NSString *text;
  12. @property (nonatomic, strong) UIColor *textColor;
  13. @property (nonatomic, assign) CGFloat animationRange;
  14. @property (nonatomic, assign) BOOL enumerated;
  15. + (instancetype)singleTextWithAnimationRange:(CGFloat)animationRange;
  16. - (CGFloat)locationWithFirstEnumerate;
  17. - (CGFloat)locationWithNormalAnimation;
  18. - (void)normalReset;
  19. - (CGFloat)locationWithWaveAnimationCompletion:(void(^)(void))completion;
  20. - (void)waveReset;
  21. @end
  22. NS_ASSUME_NONNULL_END