mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 13:12:53 +00:00
Pin the account switcher under the iPad sidebar like macOS
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user