Get transition percentage in UINavigationController

Viewed 748

I've two UIViews presented in the same UINavigationController; View A & View B.

During the transition, because I want to apply some custom animation styles, I want to know the percentage of the progress of the presentation inside the UINavigationController. How do I do this?

I want a function like this:

class ExampleNavigationController: UINavigationController {


    func viewControllerMoves(from: UIViewController, to: UIViewController, progress: CGFloat) {
        //I can read here how far the animation is and apply custom animation styles

    }

}

This function should also be called during an update by the user: Example --> http://www.latet.nl/appvideo.mov

How do I do this?

Example screens

Percentage would be 0.50

50/50

Percentage would be 1.00

100%

Percentage would be 0.00

0%

1 Answers
Related