Contents

tabBarController(_:animationControllerForTransitionFrom:to:)

Called to allow the delegate to return a Uiviewcontrolleranimatedtransitioning delegate object for use during a noninteractive tab bar view controller transition.

Declaration

optional func tabBarController(_ tabBarController: UITabBarController, animationControllerForTransitionFrom fromVC: UIViewController, to toVC: UIViewController) -> (any UIViewControllerAnimatedTransitioning)?

Parameters

  • tabBarController:

    The tab bar controller whose view controller is transitioning.

  • fromVC:

    The currently visible view controller.

  • toVC:

    The view controller intended to be visible after the transition ends.

Return Value

The UIViewControllerAnimatedTransitioning delegate object responsible for managing the tab bar view controller transition animation.

See Also

Supporting custom tab bar transition animations