Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source iOS Library For Creating UIView Animations With A Clean Chainable Syntax

  •  
  •  
  •  
  •  
  •  

I’ve mentioned a number of animation libraries in the past most recently a library extending CAlayer and CASHapeLayer for more complex animations.

Here’s an open source library submitted by Jeffrey Hurray called JHCHainableAnimations that provides UIView and Core Animation animations with a chainable and clean syntax.

JHChainableAnimation works with Swift and Objective-C. In addition to standard animations the library includes helpers included for changing the anchor point used for animations, and a number of different animation effects such as spring, and bounce.

This example shows how one could create a simple animation that scales a view, then moves it after the scaling is complete:

view.makeScale(2.0).thenAfter(0.5).moveXY(100, 50).animate(1.0);

You can find JHChainableAnimations on Github here.

A nice animation library with a clean syntax.


  •  
  •  
  •  
  •  
  •  

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