Macaw iOS Library: Morphing Animations

Victor Sukochev
2 min readMay 10, 2017

--

Macaw is an open source library which makes vector graphics drawing and animation easy and enjoyable. Not long ago we released the 0.8.2 version with interesting updates.

Morphing Animations

From the beginning of this project we wanted to implement smooth transformation between shapes. Ability to morph paths into other arbitrary paths provides a way to create complex effects. We introduced a new member of the animation’s family — Morphing Animation.

Let’s start with a simple transformation of one shape into another:

Other shape’s properties can be animated the same way:

In real cases, a single shape is not enough — we are happy to introduce optimized animation for group contents:

With some imagination you can create really wonderful transformations

Touch Events

We also made improvements to the existing API. For example, new touch events API additions to make more advanced touch events handling possible:

We welcome everyone to try and experiment with it on their own.

--

--