title: How to change Brightness, Contrast, WhiteBalance, Exposure, Focus and Sharpness of AVCaptureSession?
body: <p>I am doing a MAC App in swift,i was able to preview camera on NSView now i want to change brightness/contrast/white-balance and all camera related settings. </p>
  
  <p>I am using AVFoundation framework to preview the camera and i have slider to change the values , How can i change all those setting with user values.</p>
  
  <p>How this AVFondations link with IOKit.. I found one UVCCamera controls <a href="http://phoboslab.org/log/2009/07/uvc-camera-control-for-mac-os-x" rel="nofollow">link</a> to change Manual camera control, can i use this format???</p>
  
  <p>and in one more site i found that </p>
  
  <blockquote>
    <p>'IOKit -- Low-level framework for communicating with the kernel and
    hardware. Apple advises not to use this framework directly and will
    reject it from the AppStore.'</p>
  </blockquote>
  
  <p>Thanks</p>