<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITabBarControllerDelegate/tabBarController(_:animationControllerForTransitionFrom:to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITabBarControllerDelegate(im)tabBarController:animationControllerForTransitionFromViewController:toViewController:"
  },
  "title" : "tabBarController(_:animationControllerForTransitionFrom:to:)"
}
-->

# tabBarController(_:animationControllerForTransitionFrom:to:)

Called to allow the delegate to return a [`UIViewControllerAnimatedTransitioning`](/documentation/UIKit/UIViewControllerAnimatedTransitioning) delegate object for use during a noninteractive tab bar view controller transition.

```
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`](/documentation/UIKit/UIViewControllerAnimatedTransitioning) delegate object responsible for managing the tab bar view controller transition animation.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)