janselv / fave-button

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

Add a callback that fires instantly when the button is clicked #42

Open farktronix opened 6 years ago

farktronix commented 6 years ago

The didSelected delegate callback happens after a one second delay so that it matches the animation, but some applications need a callback immediately when the user taps the button. This patch provides the best of both worlds.

muhasturk commented 5 years ago

Please merge @xhamr

eclair4151 commented 5 years ago

+1