Setting color manually will not change the position of previewView
minseks opened this issue · comments
minseks commented
I'm on the horizontal mode.
juangz commented
Hello! I'm facing the same issue. Did you manage to solve it?
Maysam Shahsavari commented
try this:
slider.color = some_color
let x = slider.gradientView.calculateSliderProgress(for: slider.internalColor)
slider.previewView?.transition(to: .active)
slider.centerPreview(at: CGPoint(x: x * slider.bounds.width, y: x * slider.bounds.height))
LucaComanducci commented
Hi, we can't do this because "calculateSliderProgress" and "centerPreview" are inaccessible due to 'internal' protection level
Maysam Shahsavari commented
How to do this then?
Andreas Pihlström commented
I wonder this as well...
Jarred Sumner commented
I will just fork this