typedef NS_ENUM(NSInteger, TouchAnimationView_Type) {
TouchAnimationView_ZoomIn = 0,
TouchAnimationView_ZoomOut,
};
@property (nonatomic) IBInspectable BOOL controlOnly;
@property (nonatomic) IBInspectable NSString* AnimationType;
@property (nonatomic) IBInspectable UIColor* color;
@property (nonatomic) IBInspectable UIColor* colorText;
@property (nonatomic) IBInspectable CGFloat duration;
@property (nonatomic) IBInspectable CGFloat delay;
@property (nonatomic) IBInspectable CGFloat alphaStart;
@property (nonatomic) IBInspectable CGFloat alphaEnd;
@property (nonatomic) IBInspectable CGFloat size;
-(void)buttonEventAnimation:(UIButton*)button
withEvent:(UIEvent *)event
animationType:(TouchAnimationView_Type)type
color:(UIColor*)color;
-(void)textViewFieldAnimation:(CGPoint)point
withText:(NSString*)text
animationType:(TouchAnimationView_Type)type
color:(UIColor*)color
colorText:(UIColor*)colorText;
-(void)touchesEventAnimation:(NSSet<UITouch *> *)touches
withEvent:(UIEvent *)event
animationType:(TouchAnimationView_Type)type;
要运行示例项目,请克隆仓库,然后首先从Example目录运行pod install
。
TouchAnimationView可以通过CocoaPods获得。要安装它,只需将以下行添加到Podfile中
pod "TouchAnimationView"
TouchAnimationView在MIT许可证下可用。有关更多信息,请参阅LICENSE文件。