---
title: "tabViewBottomAccessory(isEnabled:content:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/tabviewbottomaccessory(isenabled:content:)"
---

# tabViewBottomAccessory(isEnabled:content:)

Places a view as the bottom accessory of the tab view. Use this modifier to dynamically show and hide the accessory view.

## Declaration

```swift
nonisolated func tabViewBottomAccessory<Content>(isEnabled: Bool, @ContentBuilder content: () -> Content) -> some View where Content : View

```

## Parameters

- `isEnabled`: If true, the bottom accessory is shown; otherwise, the bottom accessory is hidden.
- `content`: The content view of the tab view accessory.

## Discussion

Discussion On iPhone, the placement of the bottom accessory depends on the tab bar size: when the tab bar is normal size, the accessory appears above it; when the tab bar is collapsed, the accessory displays inline. Use the tabViewBottomAccessoryPlacement environment value to adjust the accessory’s content based on its placement. The following example shows a status view in the TabView bottom accessory when there’s a status update. TabView {     Tab("Home", systemImage: "house") {         HomeView()     }

Tab("Alerts", systemImage: "bell") {         AlertsView()     }

TabSection("Categories") {         Tab("Climate", systemImage: "fan") {             ClimateView()         }

Tab("Lights", systemImage: "lightbulb") {             LightsView()         }     } } .tabViewBottomAccessory(isEnabled: hasStatusUpdate) {     HomeStatusView() }

## See Also

### Tab views

- [defaultAdaptableTabBarPlacement(_:)](swiftui/view/defaultadaptabletabbarplacement(_:).md)
- [defaultTabBarPlacement(_:)](swiftui/view/defaulttabbarplacement(_:).md)
- [sectionActions(content:)](swiftui/view/sectionactions(content:).md)
- [tabBarMinimizeBehavior(_:)](swiftui/view/tabbarminimizebehavior(_:).md)
- [tabViewBottomAccessory(content:)](swiftui/view/tabviewbottomaccessory(content:).md)
- [tabViewCustomization(_:)](swiftui/view/tabviewcustomization(_:).md)
- [tabViewSearchActivation(_:)](swiftui/view/tabviewsearchactivation(_:).md)
- [tabViewSidebarHeader(content:)](swiftui/view/tabviewsidebarheader(content:).md)
- [tabViewSidebarFooter(content:)](swiftui/view/tabviewsidebarfooter(content:).md)
- [tabViewSidebarBottomBar(content:)](swiftui/view/tabviewsidebarbottombar(content:).md)
