<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITabBarController/Sidebar-swift.class/preferredPlacement",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITabBarControllerSidebar(py)preferredPlacement"
  },
  "title" : "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.

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

## 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`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)