I have a confusing situation. First, here is the code:
class MyView: SKView { ... public override func awakeFromNib() { super.awakeFromNib() let gameScene = MyGameScene(...)
I have a SKView representing a SKScene . Introducing it, I add a UIView that fills the screen. However, when I launch the application and click on the screen, “touch received” is printed, which means that the touch that should be behind the view hit the scene. Why is this?
And what can I do to prevent this?
I also tried adding a gesture recognizer to the view. This does not interfere with this problem (although I set cancelsTouchesInView to true)
Thanks for any help.
source share