TouchAnimationView 0.1.3

TouchAnimationView 0.1.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jun 2017

Maintained by Jonghyun Kim.



  • By
  • Jonghyun Kim

Touch Animation View

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.