Pin the account switcher under the iPad sidebar like macOS

This commit is contained in:
Arkadiusz Fal
2026-09-15 23:56:46 +02:00
parent e28ca98831
commit 0aa79221f4

View File

@@ -68,6 +68,16 @@ struct UnifiedTabView: View {
sidebarSections
}
.tabViewStyle(.sidebarAdaptable)
.tabViewSidebarBottomBar {
// Same chrome the macOS sidebar hangs below its list: the sidebar
// is the one surface every tab shares, so the switcher lives here
// rather than on each screen's toolbar.
if DataContextSwitcherVisibility.showsPickers(in: appEnvironment) {
DataContextSwitcherSettingsRow()
.padding(.horizontal, 8)
.padding(.vertical, 4)
}
}
.iOS26TabFeatures(shouldShowAccessory: shouldShowAccessory, settingsManager: appEnvironment?.settingsManager)
.zoomTransitionNamespace(zoomTransition)
.zoomTransitionsEnabled(zoomTransitionsEnabled)