Swift – SpriteKit CGPoint Alignment

Your scene it is not necessarily the same size of your view. You can check the size of your scene as follow:

view.scene!.frame.size
view.scene!.frame.width
view.scene!.frame.height
view.scene!.frame.midX
view.scene!.frame.midY

Leave a Comment