I have this scenario.
HorizontalRangeSliderStyle(
track:
HorizontalRangeTrack(
view: Capsule().foregroundColor(
AppStatusColor.sliderAccent
.color
)
)
.background(
Capsule().foregroundColor(
AppStatusColor.sliderAccent
.color.opacity(
AppStatusOpacity
.accentBackground
.value
)
)
)
.frame(
height: Layout.sliderTrackHeight
),
lowerThumb: makeThumb(
for: .lower,
filter: filterWrapper.filter
),
upperThumb: makeThumb(
for: .upper,
filter: filterWrapper.filter
),
lowerThumbSize: CGSize(
width: Layout.sliderThumbSize,
height: Layout.sliderThumbSize
),
upperThumbSize: CGSize(
width: Layout.sliderThumbSize,
height: Layout.sliderThumbSize
)
)
I have this scenario.
2 thumbs)invert colorsNotice that
backgroundin 1th slider hasopacity. But of course if I justreversecolors for my 2nd slider, thenbackground colorhas no moreopacityandoverlaystrack color. Any other way to do this ?