Peter solution didn't worked here but with a little tweak it worked:
func tabBarController(_ tabBarController: UITabBarController, didSelect viewController: UIViewController) { UIView.setAnimationsEnabled(false) }