Skip to content

Instantly share code, notes, and snippets.

@robnadin
Last active April 8, 2020 09:37
Show Gist options
  • Save robnadin/db9d06dd04409f7c838a to your computer and use it in GitHub Desktop.
Save robnadin/db9d06dd04409f7c838a to your computer and use it in GitHub Desktop.
extension UINavigationController {
func pushViewController(_ viewController: UIViewController, animated: Bool, completionHandler: (() -> Void)?) {
pushViewController(viewController, animated: animated)
viewController.transitionCoordinator.animate(alongsideTransition: nil) { _ in
completionHandler?()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment