Implementing a custom UINavigationController transition

The view-controller transition technique that you just explored is very nice when you want to create a custom modal presentation. However, if you want to customize transitions in UINavigationController or UITabBarController that persist throughout your app, you need to implement the transitions in a slightly different way.

Let's take a look at how the setup for animating push transitions for UINavigationController differs from the setup that is used for the transition you saw earlier:

The depicted flow is one for an interactive transition. It's very similar to the way a normal view-controller ...

Get Mastering iOS 12 Programming - Third Edition 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.