Create Simple, Custom UINavigationController Transitions
How to easily implement custom transitions when you navigate between view controllers
Recently, I started working on a new personal project where I had a static background for the entire application and all my view controllers’ views had a transparent background.
Default transition animation overlaps the source and destination views a little bit, therefore, there is only one way to make our application navigate with some dignity and smoothness — that’s right — it is custom animated transitions.
And since we usually want to keep the swipe-back gesture on view controllers, we also have to create custom interactive transitioning.
Sample Project
I have created a sample project — you can find it on GitHub.
Let’s Get Theoretical
The first thing we have to do is implement a custom transition for our UINavigationController
and implement its delegate method.