---
title: "defaultTabBarPlacement(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/defaulttabbarplacement(_:)"
---

# defaultTabBarPlacement(_:)

Specifies the preferred placement for the tabs of a TabView in the sidebarAdaptable style on platforms where the tab bar cannot adapt between different representations, and only one representation can be shown.

## Declaration

```swift
nonisolated func defaultTabBarPlacement(_ defaultPlacement: AdaptableTabBarPlacement) -> some View

```

## Discussion

Discussion On platforms that support adapting between a sidebar and tab bar (currently iPadOS), use defaultAdaptableTabBarPlacement(_:) to configure the adaptable tab bar. This modifier is effective on platforms where the sidebarAdaptable style statically resolves to either a sidebar or tab bar, such as iPhone, macOS, tvOS, and visionOS. On iPadOS (where the bar is adaptable), this modifier has no effect. The following example shows a TabView that prefers to display a sidebar on platforms where the bar cannot morph: TabView {     Tab("Home", systemImage: "house") {         HomeView()     }

Tab("Favorites", systemImage: "star") {         FavoritesView()     } } .tabViewStyle(.sidebarAdaptable) .defaultTabBarPlacement(.sidebar)

## See Also

### Configuring a tab bar

- [defaultAdaptableTabBarPlacement(_:)](swiftui/view/defaultadaptabletabbarplacement(_:).md)
- [tabViewSidebarHeader(content:)](swiftui/view/tabviewsidebarheader(content:).md)
- [tabViewSidebarFooter(content:)](swiftui/view/tabviewsidebarfooter(content:).md)
- [tabViewSidebarBottomBar(content:)](swiftui/view/tabviewsidebarbottombar(content:).md)
- [AdaptableTabBarPlacement](swiftui/adaptabletabbarplacement.md)
- [tabBarPlacement](swiftui/environmentvalues/tabbarplacement.md)
- [TabBarPlacement](swiftui/tabbarplacement.md)
- [isTabBarShowingSections](swiftui/environmentvalues/istabbarshowingsections.md)
- [tabBarMinimizeBehavior(_:)](swiftui/view/tabbarminimizebehavior(_:).md)
- [TabBarMinimizeBehavior](swiftui/tabbarminimizebehavior.md)
- [TabViewBottomAccessoryPlacement](swiftui/tabviewbottomaccessoryplacement.md)
