Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source Library Allowing You To Easily Add Spring Animations To Your iOS Interface

  •  
  •  
  •  
  •  
  •  

Just over a year ago I mentioned a great control from Jonathan Willing allowing you to implement a sliding view effect similar to that found on the iOS springboard to reveal a hidden view similar to that used by the folders on the iOS sprinboard.

Here’s another interesting  library from Jonathan that provides a spring animation effect – with physics as a Core Animation CAKeyFrameAnimation so you can easily use it to add spring animations to your UIKit interface elements.

The class is inspired by the private CASpringAnimation, and you can tweak the stiffness, damping, and mass of the spring.

As Jonathan states in the readme:

This was created in my desire to have an open-source version of the (currently private) CASpringAnimation which was discovered in iOS 6.

Spring animations, when used appropriately, can really enhance the way your app feels to the user by connecting in physical simulations with an app’s interface. And besides, who doesn’t love messing around with springs?

Here’s an animation from the readme showing the effect in action:
springanimation

You can find JNWSpringAnimation on Github here.

A neat way to add a customizable spring animation to your interfaces.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments