I\'m working with AVCaptureSession for capturing the image. Its working fine but not giving a good resolution. I compared it with the image captured by iPhone Came
AVCaptureSession
Just add this line of code in your file
self.captureSession.sessionPreset = .photo
You will get a awesome resolution like the integrated camera app from apple.