I wrote about something about shake animation. I am using this animation for check textfield validation. I checked a textfield contain number in this article. If textfield contain number textfield layer become red and shake.
The project is very simple. It have got one textfield and one button.
This is my Shake It Func.
You can use it very easily. For example any view you want and view.shakeIt()