diff --git a/Yattee/Views/Components/DataContextSwitcherMenu.swift b/Yattee/Views/Components/DataContextSwitcherMenu.swift index 1b12a344..92ed1815 100644 --- a/Yattee/Views/Components/DataContextSwitcherMenu.swift +++ b/Yattee/Views/Components/DataContextSwitcherMenu.swift @@ -414,6 +414,11 @@ struct DataContextSwitcherSidebarRow: View { .truncationMode(.tail) } } + // The sidebar bottom bar hosts the menu's label in a UIKit button that + // keeps its first rendering: switching accounts moved the checkmark + // but the pill kept naming the old context. Recreating the menu when + // the name changes is the part SwiftUI won't do on its own here. + .id(contextTitle) .accessibilityLabel(Text(String(localized: "accounts.switcher.title"))) .accessibilityValue(Text(contextTitle)) }