when should I use hidesBottomBarWhenPushed

Generated on 11/9/2024

1 search

The hidesBottomBarWhenPushed property is used in iOS development to hide the bottom tab bar when a new view controller is pushed onto the navigation stack. This is particularly useful when you want to provide a more immersive experience by removing distractions, such as the tab bar, from the screen when navigating to certain views.

For example, if you have a tab-based application and you want to push a detail view that should not display the tab bar, you can set hidesBottomBarWhenPushed to true on the view controller being pushed. This will ensure that the tab bar is hidden during the transition to the new view.

This concept is not directly covered in the provided WWDC context, but it relates to navigation and UI transitions, which are discussed in sessions like "Enhance your UI animations and transitions" and "Elevate your tab and sidebar experience in iPadOS." These sessions cover best practices for navigation and UI design, which can be relevant when considering when to hide or show UI elements like the tab bar.

Platforms State of the Union

Platforms State of the Union

Discover the newest advancements on Apple platforms.

Enhance your UI animations and transitions

Enhance your UI animations and transitions

Explore how to adopt the zoom transition in navigation and presentations to increase the sense of continuity in your app, and learn how to animate UIKit views with SwiftUI animations to make it easier to build animations that feel continuous.

Work with windows in SwiftUI

Work with windows in SwiftUI

Learn how to create great single and multi-window apps in visionOS, macOS, and iPadOS. Discover tools that let you programmatically open and close windows, adjust position and size, and even replace one window with another. We’ll also explore design principles for windows that help people use your app within their workflows.

Elevate your tab and sidebar experience in iPadOS

Elevate your tab and sidebar experience in iPadOS

iPadOS 18 introduces a new navigation system that gives people the flexibility to choose between using a tab bar or sidebar. The newly redesigned tab bar provides more space for content and other functionality. Learn how to use SwiftUI and UIKit to enable customization features – like adding, removing and reordering tabs – to enable a more personal touch in your app.

What’s new in SwiftUI

What’s new in SwiftUI

Learn how you can use SwiftUI to build great apps for any Apple platform. Explore a fresh new look and feel for tabs and documents on iPadOS. Improve your window management with new windowing APIs, and gain more control over immersive spaces and volumes in your visionOS apps. We’ll also take you through other exciting refinements that help you make expressive charts, customize and layout text, and so much more.

Migrate your TVML app to SwiftUI

Migrate your TVML app to SwiftUI

SwiftUI helps you build great apps on all Apple platforms and is the preferred toolkit for bringing your content into the living room with tvOS 18. Learn how to use SwiftUI to create familiar layouts and controls from TVMLKit, and get tips and best practices.