Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animating Thumb Handle Size #20

Open
PauloxD opened this issue Feb 24, 2020 · 1 comment
Open

Animating Thumb Handle Size #20

PauloxD opened this issue Feb 24, 2020 · 1 comment

Comments

@PauloxD
Copy link

PauloxD commented Feb 24, 2020

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 :)

@ThunderStruct
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants