SKView
doesn't have physicsBody
property, so it cannot collide.
You can, however, manually check if SKView
's frame
intersects with SKSpriteNode
's frame:
- (void)update:(CFTimeInterval)currentTime {
if (CGRectIntersectsRect(skView.frame, node.frame) {
....
}
}