RippleAnimationView.h 616 B

123456789101112131415161718192021222324252627
  1. //
  2. // RippleAnimationView.h
  3. // boxfish-english
  4. //
  5. // Created by mervin on 2016/11/4.
  6. // Copyright © 2016年 boxfish. All rights reserved.
  7. //
  8. #define ColorWithAlpha(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]
  9. #import <UIKit/UIKit.h>
  10. typedef NS_ENUM(NSInteger, AnimationType) {
  11. AnimationTypeWithBackground,
  12. AnimationTypeWithoutBackground
  13. };
  14. @interface RippleAnimationView : UIView
  15. /**
  16. 设置扩散倍数。默认1.423倍
  17. */
  18. @property (nonatomic, assign) CGFloat multiple;
  19. - (instancetype)initWithFrame:(CGRect)frame animationType:(AnimationType)animationType;
  20. @end