Can I opt out of the new TabBar in SwiftUI
Asked on 2024-07-17
1 search
Yes, you can opt out of the new TabBar in SwiftUI. The new TabView syntax in SwiftUI introduced in iOS 18 allows for a more integrated appearance and easier error catching at build time. However, if you prefer not to use the new TabBar, you can customize your app to use a sidebar instead.
To enable the sidebar with TabView in SwiftUI, you can set the TabView style to be sidebar adaptable. This allows your app to switch between a tab bar and a sidebar representation, providing flexibility in how your app's navigation is presented.
For more details, you can refer to the session Elevate your tab and sidebar experience in iPadOS at the 06:20 mark.

Platforms State of the Union
Discover the newest advancements on Apple platforms.

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.

Get started with Dynamic Type
Dynamic Type lets people choose their preferred text size across the system and all of their apps. To help you get started supporting Dynamic Type, we’ll cover the fundamentals: How it works, how to find issues with scaling text in your app, and how to take practical steps using SwiftUI and UIKit to create a great Dynamic Type experience. We’ll also show how you can best use the Large Content Viewer to make navigation controls accessible to everyone.