diff --git a/bwi/IntroduceFederation/IntroduceFederationView.swift b/bwi/IntroduceFederation/IntroduceFederationView.swift index 3e716006b..b875654dc 100644 --- a/bwi/IntroduceFederation/IntroduceFederationView.swift +++ b/bwi/IntroduceFederation/IntroduceFederationView.swift @@ -28,13 +28,15 @@ struct IntroduceFederationView: View { static let topConstraintTitle: CGFloat = 390 @EnvironmentObject var themeService: BWIThemeService @State var visibleScreen = VisibleScreen.screen1 - + @State var redrawKey = UUID() + var body: some View { TabView(selection: $visibleScreen) { IntroduceFederationScreen1().tag(VisibleScreen.screen1).navigationBarHidden(true) IntroduceFederationScreen2().tag(VisibleScreen.screen2).navigationBarHidden(true) IntroduceFederationScreen3().tag(VisibleScreen.screen3).navigationBarHidden(true) } + .id(redrawKey) .tabViewStyle(.page(indexDisplayMode: .always)) .background { Color(themeService.theme.backgroundColor) @@ -63,6 +65,10 @@ struct IntroduceFederationView: View { .onAppear { setupIndicatorColors() } + .onChange(of: themeService.isCurrentThemeDark) { _ in + setupIndicatorColors() + redrawKey = UUID() + } } private func setupIndicatorColors() {