title: SceneKit: Zooming a camera in Swift 4
body: <p>In swift 2 you can use the <code>xFov</code> and <code>yFov</code> properties of the <code>cameraNode.camera!</code> to zoom the camera in and out. But they were deprecated in Swift 3.</p>
  
  <p>I can adjust the z position of the camera using this code. . .</p>
  
  <pre><code>@objc func zoom(gesture: UIPinchGestureRecognizer) {
      let view = self.view as! SCNView
      let node = view.scene!.rootNode.childNode(withName: "Camera", recursively: false)
      let scale = gesture.scale
  
      switch gesture.state {
      case .began:
          break
      case .changed:
          node!.position.z = node!.position.z - Float(scale)
          break
      default: break
      }
  }
  </code></pre>
  
  <p>. . .but changing the z position doesnt do anything. What do I use to accomplish this in Swift 4?</p>