Toggle overlay on and off

I’ve successfully made a tool tip that shows/hides an overlay depending on where my mouse pointer is. I want to recreate this behavior but with a different trigger – a click. Think about the UX when showing/hiding the dialpad during a call on iOS. Seems very similar to the tool tip interaction but I don’t think it exists today!

Can you describe or show an example of the interaction you’re trying to recreate? I’m not familiar with iOS, and I can’t find any examples of it online. Do you have issues with the click interaction not working?