This is Apple's official SpriteKit Programming Guide coding with Swift.