DoubleTapButton

MIT License
Swift
iOS

Powered by Appetize.io.

1 image

Author

Description

A button that requires two taps: the first one to activate it and the second one to confirm the action.

You can configure the style, and if the first button reacts to swipe or to tap.

Also, you can configure the function that the confirm button calls. It returns a feedback of the function calling in a label. When function returns false, the button is reseted to its original state, and the user can try again.

If you have the power to destroy the world, is a good idea to use a DoubleTapButton... Because you don't want to destroy it by an accidental tap ;)

Tags