Expanded UINavigationController , transition function using CATransition .
func pushViewControllerWithFadeTransition(_ viewController: UIViewController) { let transition = fadeTransition() view.layer.add(transition, forKey: kCATransition) pushViewController(viewController, animated: false) } func fadeTransition() -> CATransition { let transition = CATransition() transition.duration = 0.3 transition.type = kCATransitionFade return transition } When you try to UIActivityIndicatorView stub controller with a UIActivityIndicatorView in the center, the transition passes correctly, but the indicator freezes, and, during the transition animation, you can see that the indicator is animated, but stops at the end of the transition.
Tell me how to make the correct transition so that the animation works correctly? startAnimation() and behavior animating on / tried
UPDCATransaction.begin() / .commit() in CATransaction.begin() / .commit() did not work.