Skip to content

Commit

Permalink
fix ui glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Oct 24, 2024
1 parent 256ec20 commit d43a56c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions DuckDuckGo/IntervalSlider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ struct IntervalSliderRepresentable: UIViewRepresentable {

func updateUIView(_ uiView: IntervalSlider, context: Context) {
uiView.value = Float(value)
uiView.setNeedsDisplay()
}

func makeCoordinator() -> Coordinator {
Expand Down
4 changes: 2 additions & 2 deletions DuckDuckGo/TextZoomController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d43a56c

Please sign in to comment.