I have a custom UIButton
with a blue background.
When I drag my finger over the UIButton
, I need a red background color to be filled. When I drag my finger back, the red color should disappear.
I tried an implementation using UIPanGestureRecognizer
on UIGestureRecognizerStateEnded
state. Without adding another view on top of UIButton
, I couldn't get red color in the button background.
Is there another way I can implement this?