Animation is often used in iOS development. There are many descriptions of it on the Internet. Here is only one picture:

CAAnimation is the parent of all animation classes, but we can’t use this parent directly. Instead, use its subclasses — CABasicAnimation, CAKeyframeAnimation, CATransition, CAAnimationGroup.

In the afternoon, I had nothing to do. I wrote a demo, which realized all the animation types provided in the iOS system library. The everyday complex animations we see are actually collections of these simple animations. The code is in BabyPigAnimation.

First look at the dynamic renderings:

The pictures are shown faster and the children’s shoes needed can be taken from meBabyPigAnimationOn the download.