iOS Swift Shake It Animation

Emiray Nakip
Apr 15, 2021

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.

Shake It Function

You can use it very easily. For example any view you want and view.shakeIt()

Shake It Preview

--

--