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

# tabViewBottomAccessory(content:)

Places a view as the bottom accessory of the tab view.

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

## 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 sets a status view as the `TabView`
bottom accessory.

```
TabView {
    Tab("Home", systemImage: "house") {
        HomeView()
    }

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

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

        Tab("Lights", systemImage: "lightbulb") {
            LightsView()
        }
    }
}
.tabViewBottomAccessory {
    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)