sidebarVisibility
The visibility of the tab in the sidebar.
Declaration
var sidebarVisibility: Visibility { get set }Discussion
Visibility can be set imperatively by subscripting with the tab’s id:
customization[tab: "com.myApp.alerts"].sidebarVisibility = .hiddenYou 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.