MSCircularSlider icon indicating copy to clipboard operation
MSCircularSlider copied to clipboard

Pulse animation for handle image

Open liuxiao21 opened this issue 5 years ago • 2 comments

Hey first of all thank you for this repo, it's brilliant and you made it super clear and easy to use.

I used an image as the handle and what I'm trying to do is to add a pulse animation for it, so that user can realise the handle immediately when they get there, but because the handle is private I can't add a sub-layer to it.

Is there any idea to do this animation? I had looked through the handle class but didn't find a method that I could use.

Thanks for reading this, will be really nice if I can get some helps here.

liuxiao21 avatar Jul 07 '20 23:07 liuxiao21

Hi!

My apologies for the late response. I'm currently swamped, but I will definitely add this in the next update (as well as a haptic feedback option) to convey some kind of responsiveness upon touch. To answer your question, if I remember the code structure properly, this will modify the handle size in the drawHandle method. It is a bit complicated to implement given the fact that it's drawn frame-by-frame, so animating anything requires some kind of state transition model.

Thanks! :)

ThunderStruct avatar Aug 03 '20 14:08 ThunderStruct

That will be awesome! Thank you very much for your help!

liuxiao21 avatar Aug 03 '20 21:08 liuxiao21