One Logo Pool Ball
SwiftUI · IOS API REFERENCE

TabViewCustomization.TabCustomization

struct · iOS 18.4+ · SDK 27.1

struct TabCustomization

The customizations a user has made to a ``Tab``.

Members (3)

get · iOS 18.4+

tabBarVisibility

TypeScript
get tabBarVisibility(): _SwiftUICore_Visibility
Swift declaration
var tabBarVisibility: Visibility { get }

The visibility of the tab in the tab bar. You can change the default visibility by using the ``TabContent/defaultVisibility(_:for)`` with a ``AdaptableTabBarPlacement.tabBar`` placement. If the ID isn't associated with a tab or the tab has not been customized, a default value of `.automatic` is returned.

get · iOS 18.4+

sidebarVisibility

TypeScript
get sidebarVisibility(): _SwiftUICore_Visibility
Swift declaration
var sidebarVisibility: Visibility { get set }

The visibility of the tab in the sidebar. Visibility can be set imperatively by subscripting with the tab's id: customization[tab: "com.myApp.alerts"].sidebarVisibility = .hidden You can change the default visibility by using ``TabContent/defaultVisibility(_:for)`` with a ``AdaptableTabBarPlacement.sidebar`` placement. Tab("Alerts", systemImage: "bell", value: .alerts) { AlertsView() } .customizationID("com.myApp.alerts") .defaultVisibility(.hidden, for: .sidebar) If the ID isn't associated with a tab or the tab has not been customized, a default value of `.automatic` is returned.

set · iOS 18.4+

sidebarVisibility

TypeScript
set sidebarVisibility(value: _SwiftUICore_Visibility)
Swift declaration
var sidebarVisibility: Visibility { get set }

The visibility of the tab in the sidebar. Visibility can be set imperatively by subscripting with the tab's id: customization[tab: "com.myApp.alerts"].sidebarVisibility = .hidden You can change the default visibility by using ``TabContent/defaultVisibility(_:for)`` with a ``AdaptableTabBarPlacement.sidebar`` placement. Tab("Alerts", systemImage: "bell", value: .alerts) { AlertsView() } .customizationID("com.myApp.alerts") .defaultVisibility(.hidden, for: .sidebar) If the ID isn't associated with a tab or the tab has not been customized, a default value of `.automatic` is returned.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →