title: Pinch to zoom camera
body: <p>I'm trying to make a pinch to zoom camera but I'm encountering two problems. First is that it allows the user to zoom way too much in and way to much out, secondly when I take a picture it doesn't take it of the zoomed in view. Here is my code for the pinch function...</p>
  
  <pre><code>func pinch(pinch: UIPinchGestureRecognizer) {
      if let view = cameraView {
          view.transform = CGAffineTransformScale(view.transform,
              pinch.scale, pinch.scale)
              pinch.scale = 1
      }
  
  }
  </code></pre>
  
  <p>Tell me if you need to see any more code. Thanks!</p>