Re: UINavigationController back gesture animation

2016-06-28 Thread Milton Moura
You are trying to access it before any animation / transition takes place. From the docs: "The transition coordinator object associated with a currently active transition or nil if no transition is in progress.”

Re: UINavigationController back gesture animation

2016-06-15 Thread David Duncan
Most pushes end up deferred (they don’t happen until the run loop turns) so the transition coordinator would not have been created yet. Try using the UINavigationController delegate methods, -navigationController:willShow/didShowViewController:animated:, instead. > On Jun 15, 2016, at 7:57 AM,

Re: UINavigationController back gesture animation

2016-06-15 Thread Torsten Curdt
Since I am getting nowhere with this I thought maybe at least I could know when the animation finishes. So I was trying it like this: extension UINavigationController { func pushViewController(viewController: UIViewController, animated: Bool, completion: (Void -> Void)) {

UINavigationController back gesture animation

2016-06-14 Thread Torsten Curdt
Since iOS7 we have the back gesture to go up the navigation stack. The gesture basically controls the push/pop animation. We can basically pick the controller and go back and forth in the animation phases. Does anyone see a good way to piggyback onto that? I would like to have another animation