How to do it...

To animate UIViews, perform the following steps:

  1. Create a new Xcode project with the Master-Details template and name it UIViewAnimation.
  2. The project will be created with the navigation controller template, where you will find a master screen where you can add new cells representing the current time and you will see a details screen when you click on it.
  3. We will change the native animation of the navigation controller that you see when you push and pop between view controllers.
  4. Now, let's create a new Swift file. Name the file NavigationFlipAnimator to create a class with the name NavigationFlipAnimator and extend it from NSObject.
  5. The class will act as an animator for the navigation controller classes. That's why we will ...

Get iOS Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.