How do I make tappable overlays?

That’s the one I was copying but it didn’t work