Guest User

Untitled

a guest
May 22nd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. #import "Common.h"
  2.  
  3. @interface AnimatedFloat : NSObject
  4. {
  5. float _startValue;
  6. NSTimeInterval _startTime;
  7. BOOL _hasStarted;
  8.  
  9. float _endValue;
  10. NSTimeInterval _endTime;
  11. BOOL _hasEnded;
  12.  
  13. AnimationCurve _curve;
  14. }
  15.  
  16. @property (nonatomic, assign) float startValue;
  17. @property (nonatomic, assign) NSTimeInterval startTime;
  18. @property (nonatomic, readonly) BOOL hasStarted;
  19.  
  20. @property (nonatomic, assign) float endValue;
  21. @property (nonatomic, assign) NSTimeInterval endTime;
  22. @property (nonatomic, readonly) BOOL hasEnded;
  23.  
  24. @property (nonatomic, assign) AnimationCurve curve;
  25.  
  26. @property (nonatomic, assign) float value;
  27.  
  28. +(id)withValue:(float)value;
  29. +(id)withStartValue:(float)startValue endValue:(float)endValue speed:(float)speed;
  30. +(id)withStartValue:(float)startValue endValue:(float)endValue forTime:(NSTimeInterval)time;
  31.  
  32. -(NSString*)description;
  33.  
  34. @end
Add Comment
Please, Sign In to add comment