Unfortunately, with a UIButton, this causes issues. I found that the button would become slower to respond, and seem sluggish - it just doesnt seem to work well. So I had to go back to an older method of animation, using a CAAnimation on the layer of the UIButton.
As it took a little fiddling to get this right, I thought I would share the class in a github repo. Its here :
https://github.com/lukecsmith/LSAnimatingColourButton
And it now uses a CAAnimation that looks like this :
Any feedback or improvement requests welcome.


No comments:
Post a Comment