I want to implement the button to be visible when I make a specific gesture

For example, when I make a “victory” gesture, the button becomes visible. But I don’t know how to write the code. Do you have any material for reference?