Contents

sidebarAdaptable

A tab bar style that adapts to each platform.

Declaration

@MainActor @preconcurrency static var sidebarAdaptable: SidebarAdaptableTabViewStyle { get }

Discussion

Tab views using the sidebar adaptable style have an appearance that varies depending on the platform:

  • iPadOS displays a top tab bar that can adapt into a sidebar.

  • iOS displays a bottom tab bar.

  • macOS and tvOS always show a sidebar.

  • visionOS shows an ornament and also shows a sidebar for secondary tabs within a TabSection.

To apply this style to a tab view, or to a view that contains tab views, use the tabViewStyle(_:) modifier.

See Also

Getting built-in tab view styles