---
title: "tabBarController(_:sidebar:sidebarAction:group:operationForAcceptingItemsFrom:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitabbarcontroller/sidebar-swift.class/delegate-swift.protocol/tabbarcontroller(_:sidebar:sidebaraction:group:operationforacceptingitemsfrom:)"
---

# tabBarController(_:sidebar:sidebarAction:group:operationForAcceptingItemsFrom:)

Determines if items from the specified drop session can be dropped into the specified sidebarAction. If the operation is either a .move or .copy, then the drop will proceed and tabBarController:sidebar:sidebarAction:acceptItemsFromDropSession: is called. By default, the drop will be treated as a cancel operation if this is not implemented.

## Declaration

```swift
optional func tabBarController(_ tabBarController: UITabBarController, sidebar: UITabBarController.Sidebar, sidebarAction: UIAction, group: UITabGroup, operationForAcceptingItemsFrom session: any UIDropSession) -> UIDropOperation
```
