bottomAccessory

Asked on 2025-08-26

1 search

The concept of a "bottom accessory" in the context of Apple's WWDC sessions refers to a UI element that can be added to the bottom of a tab bar or other similar UI components. This is particularly relevant in the design of apps using UIKit or SwiftUI, where you can create a bottom accessory to enhance the user interface by providing additional controls or information.

For UIKit, you can create a UITabAccessory with your content view and set it as the bottom accessory property on a UITabBarController. This allows the accessory to be displayed in line with the tab bar, and it can adapt to changes in the environment, such as when the tab bar is minimized or expanded. You can learn more about this in the session Build a UIKit app with the new design.

In SwiftUI, you can use the TabView with a BottomAccessory modifier to place a view above the tab bar. This takes advantage of the extra space provided by the tab bar's collapsing behavior, allowing you to keep important controls close at hand. This is discussed in the session Build a SwiftUI app with the new design.

These features are part of Apple's efforts to provide more flexible and adaptive UI components that enhance the user experience across different devices and screen sizes.