<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/defaultAdaptableTabBarPlacement(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE31defaultAdaptableTabBarPlacementyQrAA0efgH0VF"
  },
  "title" : "defaultAdaptableTabBarPlacement(_:)"
}
-->

# defaultAdaptableTabBarPlacement(_:)

Specifies the default placement for the tabs in a tab view using the
adaptable sidebar style.

```
nonisolated func defaultAdaptableTabBarPlacement(_ defaultPlacement: AdaptableTabBarPlacement = .automatic) -> some View
```

## Parameters

`defaultPlacement`

The default arrangement for the tab view.

## Discussion

This modifier is only effective on iPadOS in the
[`sidebarAdaptable`](/documentation/SwiftUI/TabViewStyle/sidebarAdaptable) style. In any other configuration,
the system ignores it.

The following example shows a [`TabView`](/documentation/SwiftUI/TabView) with three tabs, where
the tab view displays the sidebar representation when the app
initially launches.

```
TabView(selection: $selection) {
    Tab("Home", systemImage: "house", value: MyTab.home) {
        MyHomeView()
    }

    Tab("Downloads", systemImage: "square.and.arrow.down.fill",
        value: MyTab.downloads
    ) {
        MyDownloadsView()
    }

    Tab("Browse", systemImage: "list.bullet", value: MyTab.browse) {
        MyBrowseView()
    }
}
.tabViewStyle(.sidebarAdaptable)
.defaultAdaptableTabBarPlacement(.sidebar)
```

---

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)