Create an action on clicking a button that appears only when other button is clicked.
I have created a rectangle.
The rectangle changes its color when tapped on it.Also a button appears when the rectangle is tapped.
Now I want to associate an action with that button if the rectangle has been tapped( else the button won't even appear).
The action on the button would be: If it is tapped, a next screen appears.