---
title: "tabBarController(_:animationControllerForTransitionFrom:to:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitabbarcontrollerdelegate/tabbarcontroller(_:animationcontrollerfortransitionfrom:to:)"
---

# 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

```swift
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

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

## See Also

### Supporting custom tab bar transition animations

- [tabBarController(_:interactionControllerFor:)](uikit/uitabbarcontrollerdelegate/tabbarcontroller(_:interactioncontrollerfor:).md)
