Shake animations are a great way to provide feedback to the user without needing to make additions to your UI and previously I mentioned a text field category for creating shake animations called UITextField+Shake.
Here’s an open source Swift component from Håkon Bogen called SingleLineShakeAnimation allowing you to easily add a configurable shake animation to a UIView.
With SingleLineShakeAnimation you can add both horizontal and vertical shakes, and also adjust the duration of the shake. Since SingleLineSHakeAnimation works on UIView subclasses you can easily use it to create nice feedback effects when user clicks a button, or makes an invalid entry in a text field.
Here’s an image showing SingleLineShakeANimation in action from the readme:
You can find SingleLineShakeAnimation on Github here.
A nice component for easily adding a shake animation.
Original article: Open Source Component For Easily Adding A Customizable Shake Animation To UIView Subclasses
©2015 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.
