So, I have a slightly stupid requirement, I'm trying to include a function like "Easter egg" in the application, where if you click on a certain area 3 times, a special view controller will come up with some stupid pictures, etc ...
I created a UIView and added a UITapGestureRecognizer to it. but when I set the background color to "clear" (to effectively hide the view), it does not respond to clicks.
How can I make the view invisible and still active? I want to use UIView because I configured it on several taps, so I did not use UIButton
source share