---
title: UITabBarController.Mode.tabSidebar
framework: uikit
role: symbol
role_heading: Case
path: uikit/uitabbarcontroller/mode-swift.enum/tabsidebar
---

# UITabBarController.Mode.tabSidebar

The system displays the content as either a tab bar or a sidebar, depending on the context.

## Declaration

```swift
case tabSidebar
```

## Mentioned in

Elevating your iPad app with a tab bar and sidebar

## Discussion

Discussion Different platforms handle the mode differently: On iPad, the system displays the content as either a tab bar or a sidebar, depending on the context. On Mac Catalyst, the system displays a sidebar. On iPhone and Apple TV, the system displays the platform’s regular tab bar. In visionOS, the system displays the platform’s regular tabs, but a UITabGroup can display a sidebar when it displays the group’s view controller. For more information, see Elevating your iPad app with a tab bar and sidebar.

## See Also

### Setting modes

- [UITabBarController.Mode.automatic](uikit/uitabbarcontroller/mode-swift.enum/automatic.md)
- [UITabBarController.Mode.tabBar](uikit/uitabbarcontroller/mode-swift.enum/tabbar.md)
