CGVectorMake
has been deprecated. Use the following syntax to initialise a CGVector:
self.physicsWorld.gravity = CGVector(dx: 0, dy: 0)
Or, since you want a vector with both components 0:
self.physicsWorld.gravity = CGVector.zero
solved Swift 4 Change Physics Gravity