Can I opt out of the new TabBar in SwiftUI
Generated on 7/17/2024
1 search

This post is brought to you by Tailscan,
the best devtool for Tailwind CSS.
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.

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.

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.