Shake up those text boxes with the newest UITextFieldShaker
now available on NuGet!
This is a Xamarin.iOS Binding Library around a popular iOS extension called UITextField+Shake
developed by Andrea Mazzini.
Check out the binding GitHub here: https://github.com/SuavePirate/UITextFieldShaker
And the NuGet here: https://www.nuget.org/packages/UITextFieldShaker/
Be sure to check out the documentation here or on GitHub:
Documentation
UITextFieldShaker
A Xamarin.iOS Binding implementation of the UITextField+Shaker extension.
Installation
Use NuGet!
Install-Package UITextFieldShaker
https://www.nuget.org/packages/UITextFieldShaker
Usage
Simply include the namespace, and start calling Shake()
on your UITextFields
!
MyTextField.Shake();
There are a number of overloads to allow you to choose how many times it shakes, the delta between shakes, add an action when the shaking is done, choose the direction it shakes, and more.
void Shake(); void Shake(int times, nfloat delta); void Shake(int times, nfloat delta, Action handler); void Shake(int times, nfloat delta, double interval); void Shake(int times, nfloat delta, double interval, Action handler); void Shake(int times, nfloat delta, double interval, ShakeDirection shakeDirection); void Shake(int times, nfloat delta, double interval, ShakeDirection shakeDirection, Action handler);
Start Shaking!
If you like what you see, don’t forget to follow me on twitter @Suave_Pirate, check out my GitHub, and subscribe to my blog to learn more mobile developer tips and tricks!
Interested in sponsoring developer content? Message @Suave_Pirate on twitter for details.