From d43a56c82a720205cade5e6754e3038abf9501ed Mon Sep 17 00:00:00 2001 From: Chris Brind Date: Thu, 24 Oct 2024 23:49:14 +0100 Subject: [PATCH] fix ui glitch --- DuckDuckGo/IntervalSlider.swift | 1 + DuckDuckGo/TextZoomController.swift | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/DuckDuckGo/IntervalSlider.swift b/DuckDuckGo/IntervalSlider.swift index d0c3b33f08..0fcb03d09e 100644 --- a/DuckDuckGo/IntervalSlider.swift +++ b/DuckDuckGo/IntervalSlider.swift @@ -94,6 +94,7 @@ struct IntervalSliderRepresentable: UIViewRepresentable { func updateUIView(_ uiView: IntervalSlider, context: Context) { uiView.value = Float(value) + uiView.setNeedsDisplay() } func makeCoordinator() -> Coordinator { diff --git a/DuckDuckGo/TextZoomController.swift b/DuckDuckGo/TextZoomController.swift index 5a32c0a0fa..e61830494b 100644 --- a/DuckDuckGo/TextZoomController.swift +++ b/DuckDuckGo/TextZoomController.swift @@ -124,9 +124,9 @@ struct TextZoomEditorView: View { .foregroundColor(Color(designSystemColor: .textPrimary)) .padding(12) } - .background(RoundedRectangle(cornerRadius: 8)) + .background(RoundedRectangle(cornerRadius: 8).foregroundColor(Color(designSystemColor: .surface))) .padding(16) - .foregroundColor(Color(designSystemColor: .surface)) + } var body: some View {