Powered by Appetize.io.
The normal switching between view controllers on UITabBarControllers is boring. No animation whatsoever. So I decided to add a cube animation. It uses CoreAnimation to be able to rotate around the Y-axis (the one pointing out of the top of the phone). I had to use CATransformLayer to preserve the 90° angle while keeping the edges of the views touching.