TouchAnimationView 0.1.3

TouchAnimationView 0.1.3

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最新发布2017年6月

Jonghyun Kim 维护。



  • Jonghyun Kim

触动画视图

touchanimationview mov

动画风格

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;

使用

set custom class and just set propery on storyboard

示例

要运行示例项目,请克隆仓库,然后首先从Example目录运行pod install

安装

TouchAnimationView可以通过CocoaPods获得。要安装它,只需将以下行添加到Podfile中

pod "TouchAnimationView"

许可证

TouchAnimationView在MIT许可证下可用。有关更多信息,请参阅LICENSE文件。