This works with iOS 7.1 and in all OSX versions supporting SpriteKit.
In this example, I use the mySKView variable to place the SKView in the game.
Set the showPhysics property of your SKView to true / YES. This is usually done by adding the following line after the line "mySKView.showsFPS = true". Usually in a viewcontroller owning an SKView.
Obj-C:
mySKView.showsPhysics = YES;
Swift
mySKView.showsPhysics = true
Theis egeberg
source share