AFViewShaker

AFViewShaker is simple as a brick utility for UIView shake animation.

Using

Create shaker for one view
AFViewShaker * viewShaker = [[AFViewShaker alloc] initWithView:self.formView];
Objective-c
Create shaker for multiple views
NSArray * allFields = @[self.emailField, self.passwordField];
AFViewShaker * viewShaker = [[AFViewShaker alloc] initWithViewsArray:allFields];
Objective-c
Shake with default parameters
[self.viewShaker shake];
Objective-c
Shake with additional parameters
[self.viewShaker shakeWithDuration:0.6 completion:^{
    NSLog(@"Hello World!");
}];
Objective-c

Installation

Using CocoaPods

Add the following to your Podfile and run $ pod install

pod "AFViewShaker", "~> 0.0.5"
Ruby

Using Carthage

Add the following to your Cartfile and run $ carthage update

github "ArtFeel/AFViewShaker", ~> 0.0.5
Ruby

GitHub

Latest commit to the master branch on 11-18-2017
Download as zip