filmhomage / TouchAnimationView

Beautiful Touch Animation View
MIT License
5 stars 2 forks source link
animation-library animation-view ios objective-c touch touchscreen typing-animation

Touch Animation View

Build Status Version License Platform

touchanimationview mov

Animation Style

typedef NS_ENUM(NSInteger, TouchAnimationView_Type) {
    TouchAnimationView_ZoomIn = 0,
    TouchAnimationView_ZoomOut,
};

Property

@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;

Interface

-(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;

Usage

set custom class and just set propery on storyboard

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

TouchAnimationView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "TouchAnimationView"

License

TouchAnimationView is available under the MIT license. See the LICENSE file for more info.