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.

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

©2015 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *