One Logo Pool Ball
SwiftUI · IOS API REFERENCE

TabViewBottomAccessoryPlacement

enum · iOS 26.0+ · SDK 27.1

enum TabViewBottomAccessoryPlacement

A placement of the bottom accessory in a tab view. You can use this to adjust the content of the accessory view based on the placement. The following example shows playback controls when the view is inline, and an expanded slider player view when the view is expanded. struct MusicPlaybackView: View { @Environment(\.tabViewBottomAccessoryPlacement) var placement var body: some View { switch placement { case .inline: ControlsPlaybackView() case .expanded: SliderPlaybackView() } } You can set the `TabView` bottom accessory using ``View/tabViewBottomAccessory(content:)`` 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() }

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →