Contents

SidebarAdaptableTabViewStyle

A tab bar style that adapts to each platform.

Declaration

struct SidebarAdaptableTabViewStyle

Overview

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.

Use sidebarAdaptable to construct this style.

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

Topics

Initializers

See Also

Supporting types