---
title: "tabBarController(_:interactionControllerFor:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitabbarcontrollerdelegate/tabbarcontroller(_:interactioncontrollerfor:)"
---

# tabBarController(_:interactionControllerFor:)

Called to allow the delegate to return a UIViewControllerInteractiveTransitioning delegate object for use during an animated tab bar transition.

## Declaration

```swift
optional func tabBarController(_ tabBarController: UITabBarController, interactionControllerFor animationController: any UIViewControllerAnimatedTransitioning) -> (any UIViewControllerInteractiveTransitioning)?
```

## Parameters

- `tabBarController`: The tab bar controller participating in the interactive, animated transition.
- `animationController`: The noninteractive animation controller

## Return Value

Return Value The UIViewControllerInteractiveTransitioning delegate object responsible for managing the user interaction in an animated tab bar transition.

## See Also

### Supporting custom tab bar transition animations

- [tabBarController(_:animationControllerForTransitionFrom:to:)](uikit/uitabbarcontrollerdelegate/tabbarcontroller(_:animationcontrollerfortransitionfrom:to:).md)
