1

I'm trying to implement a (like present/dismiss functions)

popViewControler:animated:compilation

pushViewController:animated:compilation

In a UINavigationController subclass.

I want to detect in my subclass every time a new UIViewController is poppet /pushed and the animation has ended and then call the callback.

Any suggestions?

Thanks

ilan
  • 4,402
  • 6
  • 40
  • 76

1 Answers1

4

UINavigationControllerDelegate

func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {

}

func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool) {

}
Harshal Valanda
  • 5,331
  • 26
  • 63