https://github.com/ArtFeel/AFViewShaker
https://github.com/ArtFeel/AFViewShaker
animation objective-c shake uitextfield uiview
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ArtFeel/AFViewShaker
- Owner: ArtFeel
- License: mit
- Created: 2013-12-05T17:37:21.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-11-18T18:40:41.000Z (over 7 years ago)
- Last Synced: 2025-04-01T12:06:00.764Z (14 days ago)
- Topics: animation, objective-c, shake, uitextfield, uiview
- Language: Objective-C
- Size: 273 KB
- Stars: 1,213
- Watchers: 42
- Forks: 162
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
AFViewShaker
=======
[](http://cocoapods.org)
[](https://github.com/Carthage/Carthage)
[]()## About
AFViewShaker is simple as a brick utility for UIView shake animation.
## Using
##### Create shaker for one view
```objective-c
AFViewShaker * viewShaker = [[AFViewShaker alloc] initWithView:self.formView];
```##### Create shaker for multiple views
```objective-c
NSArray * allFields = @[self.emailField, self.passwordField];
AFViewShaker * viewShaker = [[AFViewShaker alloc] initWithViewsArray:allFields];
```##### Shake with default parameters
```objective-c
[self.viewShaker shake];
```##### Shake with additional parameters
```objective-c
[self.viewShaker shakeWithDuration:0.6 completion:^{
NSLog(@"Hello World!");
}];
```## Installation
### Using CocoaPods
Add the following to your `Podfile` and run `$ pod install`
```ruby
pod "AFViewShaker", "~> 0.0.5"
```### Using Carthage
Add the following to your `Cartfile` and run `$ carthage update`
```ruby
github "ArtFeel/AFViewShaker", ~> 0.0.5
```## For Xamarin users
If you are using [Xamarin.iOS](https://xamarin.com), check out [this](https://github.com/robert-waggott/Xamarin.ViewShaker) port by [Robert Waggott](https://github.com/robert-waggott).