TipKit: How to let the View know that a tip is shown

I implemented TipKit in my app, but I ran into this problem:

I want every tap that happens when a tip is open only close the tip and nothing else. Only the next taps should interfere with the View that called the tip. I have a game where you tap on a sort of hidden object, so when you tap on a wrong place it generates an error. When the tip is open and you accidentally tap on the game (or want to close the tip that way) the game reads this as intentional game tap and counts that as an error. With other overlaying views I have a Bool property that prevents this behavior, because the game 'knows' that a tap is only legit if this Bool is false.
But I can't figure out how to 'let the game know' that a tip is open.

Is there a way how I can read if a tip is shown or already invalidated?

  • The moment I posted it I tried to add ad .onDisAppear to the TipView, that sets a Boolean to true (and only with that the game will read taps on the hidden object image), so this is fixed, but I couldn't find a way for .popPverTip. So please if you have suggestions, let me know

Add a Comment