diff --git a/nahbar/nahbar/ContentView.swift b/nahbar/nahbar/ContentView.swift index 453f8e1..bbeb2db 100644 --- a/nahbar/nahbar/ContentView.swift +++ b/nahbar/nahbar/ContentView.swift @@ -38,32 +38,25 @@ struct ContentView: View { TabView(selection: $selectedTab) { TodayView() .tabItem { Label("Heute", systemImage: "sun.max") } - .toolbarBackground(theme.backgroundPrimary.opacity(0.88), for: .tabBar) - .toolbarBackground(.visible, for: .tabBar) - .toolbarColorScheme(theme.id.isDark ? .dark : .light, for: .tabBar) .tag(0) PeopleListView() .tabItem { Label("Menschen", systemImage: "person.2") } - .toolbarBackground(theme.backgroundPrimary.opacity(0.88), for: .tabBar) - .toolbarBackground(.visible, for: .tabBar) - .toolbarColorScheme(theme.id.isDark ? .dark : .light, for: .tabBar) .tag(1) IchView() .tabItem { Label("Ich", systemImage: "person.circle") } - .toolbarBackground(theme.backgroundPrimary.opacity(0.88), for: .tabBar) - .toolbarBackground(.visible, for: .tabBar) - .toolbarColorScheme(theme.id.isDark ? .dark : .light, for: .tabBar) .tag(2) SettingsView() .tabItem { Label("Einstellungen", systemImage: "gearshape") } - .toolbarBackground(theme.backgroundPrimary.opacity(0.88), for: .tabBar) - .toolbarBackground(.visible, for: .tabBar) - .toolbarColorScheme(theme.id.isDark ? .dark : .light, for: .tabBar) .tag(3) } + // Tab-Bar-Styling einmalig auf TabView statt auf jedem Tab setzen – + // verhindert weißes Aufblitzen beim Tab-Wechsel (Issue #36) + .toolbarBackground(theme.backgroundPrimary.opacity(0.92), for: .tabBar) + .toolbarBackground(.visible, for: .tabBar) + .toolbarColorScheme(theme.id.isDark ? .dark : .light, for: .tabBar) .fullScreenCover(isPresented: $showingNahbarOnboarding) { OnboardingContainerView { nahbarOnboardingDone = true