mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-16 06:28:27 +02:00
TabView indicator points change now their color when system color changed
This commit is contained in:
@@ -28,6 +28,7 @@ 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) {
|
||||
@@ -35,6 +36,7 @@ struct IntroduceFederationView: View {
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user