Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artfeel/afviewshaker
https://github.com/artfeel/afviewshaker
animation objective-c shake uitextfield uiview
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/artfeel/afviewshaker
- Owner: ArtFeel
- License: mit
- Created: 2013-12-05T17:37:21.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-11-18T18:40:41.000Z (about 7 years ago)
- Last Synced: 2025-01-12T04:32:50.699Z (10 days ago)
- Topics: animation, objective-c, shake, uitextfield, uiview
- Language: Objective-C
- Size: 273 KB
- Stars: 1,213
- Watchers: 43
- Forks: 162
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
AFViewShaker
=======
[![CocoaPods](https://img.shields.io/cocoapods/v/AFViewShaker.svg)](http://cocoapods.org)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![license](https://img.shields.io/github/license/ArtFeel/AFViewShaker.svg)]()## About
AFViewShaker is simple as a brick utility for UIView shake animation.![](example.gif)
## 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).