---
title: preferredPlacement
framework: uikit
role: symbol
role_heading: Instance Property
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, visionOS 27.0+]
path: uikit/uitabbarcontroller/sidebar-swift.class/preferredplacement
---

# preferredPlacement

The preferred placement for the tab bar controller when the sidebar and tab bar are mutually exclusive, and only one placement can be displayed.

## Declaration

```swift
var preferredPlacement: UITabBarController.Sidebar.Placement { get set }
```

## Discussion

Discussion When set to UITabBarControllerSidebarPlacementAutomatic, the system resolves to the platform default. On iOS, this resolves to showing the tab bar by default. This property has no effect on platforms where multiple placements are supported, like on iPadOS, where the sidebar can be minimized into the top tab bar. Default is UITabBarControllerSidebarPlacementAutomatic.

## See Also

### Managing customization

- [isAvailable](uikit/uitabbarcontroller/sidebar-swift.class/isavailable.md)
- [isHidden](uikit/uitabbarcontroller/sidebar-swift.class/ishidden.md)
- [navigationOverflowItems](uikit/uitabbarcontroller/sidebar-swift.class/navigationoverflowitems.md)
- [preferredLayout](uikit/uitabbarcontroller/sidebar-swift.class/preferredlayout.md)
- [UITabBarController.Sidebar.Layout](uikit/uitabbarcontroller/sidebar-swift.class/layout.md)
- [UITabBarController.Sidebar.Placement](uikit/uitabbarcontroller/sidebar-swift.class/placement.md)
- [reconfigureItem(for:)](uikit/uitabbarcontroller/sidebar-swift.class/reconfigureitem(for:).md)
