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

Pulse animation for handle image #26

Open
liuxiao21 opened this issue Jul 7, 2020 · 2 comments
Open

Pulse animation for handle image #26

liuxiao21 opened this issue Jul 7, 2020 · 2 comments

Comments

@liuxiao21
Copy link

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.

@ThunderStruct
Copy link
Owner

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

@liuxiao21
Copy link
Author

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

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