how do I know tab bar is minimised

Asked on 2025-08-26

1 search

To determine if the tab bar is minimized, you can look for specific behaviors in your app's design. In the new design for both UIKit and SwiftUI, the tab bar on iPhone can be configured to minimize on scroll. This means that as you scroll down, the tab bar will minimize, and it will re-expand when you scroll in the opposite direction. This behavior helps keep the focus on your app's content.

For UIKit, you can set the top bar minimize behavior to the desired direction, such as "onscroll down," to achieve this effect. Similarly, in SwiftUI, you can use the Tab Bar Minimize Behavior modifier to adopt this behavior.

When the tab bar is minimized, any accessory view, like a mini player in the Music app, will animate down to display in line with the tab bar. This visual cue can help you identify when the tab bar is minimized.

For more details, you can refer to the session Build a UIKit app with the new design (02:08) and Build a SwiftUI app with the new design (04:24).