---
title: "tabBarController(_:tab:operationForAcceptingItemsFrom:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitabbarcontrollerdelegate/tabbarcontroller(_:tab:operationforacceptingitemsfrom:)"
---

# tabBarController(_:tab:operationForAcceptingItemsFrom:)

Asks the delegate for a drop operation to determine if drag items can be dropped into the specified @c tab

## Declaration

```swift
optional func tabBarController(_ tabBarController: UITabBarController, tab: UITab, operationForAcceptingItemsFrom session: any UIDropSession) -> UIDropOperation
```

## Mentioned in

Elevating your iPad app with a tab bar and sidebar

## Discussion

Discussion If the operation is either a .move or .copy, then the drop will proceed and tabBarController:tab:acceptItemsFromDropSession: is called. By default, the drop will be treated as a cancel operation if this is not implemented.
