what is new in tabview

Asked on 06/11/2025

1 search

In the latest updates presented at WWDC, there are several new features and improvements related to TabView:

  1. SwiftUI Enhancements:

    • TabView in SwiftUI now has a new type-safe syntax that helps catch common errors at build time. You declare a tab struct with a title, image, and content view, and optionally include a selection value for programmatic selection. This ensures all tabs have the same selection type matching the TabView itself.
    • The TabView can now be styled to appear as a sidebar or as a segmented control in the toolbar. This flexibility allows for a more customizable user interface.
  2. Customization and Flexibility:

    • Users can now customize the TabView experience by reordering and hiding infrequently used options. This is programmatically controllable, allowing developers to provide a more personalized experience.
    • The new sidebar adoptable TabView style allows users to switch between a tab bar and a sidebar view, enhancing the flexibility of the app's navigation structure.
  3. UIKit Updates:

    • UIKit has introduced new APIs to better describe app hierarchies to UITabBarController. You can create UI Tabs to represent each top-level section of the app and assign them to the tabs property on the tab bar controller. Changes made to the UI Tab instance are reflected immediately where the tab is displayed.

For more detailed information, you can refer to the session Elevate your tab and sidebar experience in iPadOS (00:04:28) and What’s new in SwiftUI (00:01:04).

what is new in tabview | Ask WWDC