Hide/Show on button click (depending on status of visibility)?

Michael Schlinge shared this question 4 years ago
Answered

Is it possible to have a property as a condition?


I want a button that changes when it is clicked.


So when the button is grey, it should change to white when clicked.


And when it is white it should change to gray when clicked.


Same with visiblity of elements.


When a button is clicked once, an element should be made visible.


When it is clicke a second time it should hide.


Can you point me in the right direction?

Comments (1)

photo
1

Ok...


i think i got the answer myself.


When ever i created the interactions i created 2 seperate tap events and not one event with an else condition. That seemed to block both interactions.


Now it seems to work.