title: How to take a picture while using ARKIT
body: <p>i am using ARkit and i want to take a a picture with my AR models.
  what i am using right now is taking snapshot but the snapshot image quality is very poor.</p>
  <pre><code>arView.snapshot(saveToHDR: true) { image in  } 
  </code></pre>
  <p>i have also used below code snippet to work with arview's curentFrame</p>
  <pre><code>extension UIImage {
      public convenience init?(pixelBuffer: CVPixelBuffer) {
          var cgImage: CGImage?
          VTCreateCGImageFromCVPixelBuffer(pixelBuffer, options: nil, imageOut: &amp;cgImage)
  
          guard let cgImage = cgImage else {
              return nil
          }
  
          self.init(cgImage: cgImage)
      }
  }
  </code></pre>
  <p>But nothing happens.
  how to take a picture just like we take picture using camera application having same <strong>image quality</strong>?</p>