bottom accessory view

Asked on 06/11/2025

1 search

The concept of a "bottom accessory view" is discussed in the context of building apps with the new design in both UIKit and SwiftUI.

In UIKit, to set a bottom accessory, you create a UITabAccessory with your content view and then set the bottom accessory property on the UITabBarController. This allows the accessory view to be displayed above the tab bar, and it can animate to display in line with the tab bar when minimized. This is covered in the session Build a UIKit app with the new design.

In SwiftUI, you can place a view above the bar with the TabView bottom accessory modifier. This takes advantage of the extra space provided by the tab bar's collapsing behavior. You can read the Tab View button accessory placement from the environment and adjust the content of your accessory when it collapses into the Tab bar area. This is discussed in the session Build a SwiftUI app with the new design.

These sessions provide insights into how to implement and manage bottom accessory views in your app's design.