I'm trying to make two different custom transition (one fade and one slide from top) within a navigation controller.
The transition works very well the first time but when pop the transitions acting crazy. I guess that navigationController.delegate is the key but I can't figure it out by myself. Any help will be greatly appreciated thanks a lot
******************************** IOS14 QUESTION UPDATE *****************************************
the solution of @Vlad for setting the delegate is working great thanks.
But recently in IOS14 a stack menu appearing when a long press gesture is detected on navigation back button (which allows user to navigate through the navigationcontroller's viewcontrollers stack).
And so the navigationcontroller delegate is setting to the wrong controller when popping two or more controllers.
I am once again asking for your support