I have a ZStack with a View inside of it that only takes up around 75% of the ZStack space. I would like to make it so that when a user taps on the ZStack outside of the child View the app executes something. In other words tapping the child View should do nothing.
So far I've tried setting the ZStack's onTapGesture so that my code runs there, but of course this engages no matter where I tap, even when tapping on child.
I saw the contentShape but it seems to only handle an entire shape. I would need to basically put a hole in it to work. Anyone doing this?