<!--
{
  "availability" : [
    "iOS: 26.1.0 -",
    "iPadOS: 26.1.0 -",
    "macCatalyst: 26.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/tabViewBottomAccessory(isEnabled:content:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE03tabC15BottomAccessory9isEnabled7contentQrSb_qd__yXEtAaBRd__lF"
  },
  "title" : "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.

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

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`](/documentation/SwiftUI/EnvironmentValues/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()
}
```

---

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)