MSCircularSlider
MSCircularSlider copied to clipboard
Animating Thumb Handle Size
Firstly, I wanted to say, this is a brilliant repo!
I'm trying to animate the thumb size when a user starts interacting with the slider. (Similar to that of the iOS music seek bar)
I was wondering if anyone had successfully implemented this before? Failing that, I was wondering when in the call cycle is the thumb size set, and is it possible to change?
I've looked at the handle itself, where the diameter variable returns a computed property. I've also tried to implement the delegate method to update the handle to, say "large". But none of these seem to work.
Thanks for taking the time to read :)
Hi there :)
Thanks for your feedback! The way it all currently works is that I have different preset handles, each with its own size and style.
I haven't worked on this for quite a while now, but I'm pretty sure if you edit the diameter member in MSCircularSliderHandle.swift to be a stored property that you can animate, rather than a computed one, I think it will work.
I added that request to my to-do list, so I'll probably throw it in the next update. Not sure how soon I'll be free enough to work on it though!
Have an awesome day!