janselv / fave-button

FaveButton is an iOS cute animated like button written in Swift.
MIT License
1.51k stars 201 forks source link

The favorite buttons delegate is not called right away #17

Closed gregoryew closed 7 years ago

gregoryew commented 7 years ago

I am using this which I think is great however I think I am experiencing a button with the favorite button. The button does not respond to the tap event immediately. This is a causing an issue when the user presses the favorite button and then closes the screen before the button has a chance to respond. Is there a way to correct this without changing the favorite button's code? Thanks, Greg.

gregoryew commented 7 years ago

I fixed the problem with my code. I did not realize that the favorite button inherits from uibutton and I could just use the tapped inside event. I was using the delegate isselected event but should have been using tapped inside.