title: How to get the front camera in Swift?
body: <p>I am trying to get the front camera with live view. I am able to get the back camera using:</p>
  
  <pre><code>var backCamera = AVCaptureDevice.defaultDeviceWithMediaType(AVMediaTypeVideo)
  </code></pre>
  
  <p>But I can't seem to find how to get the front camera. How can I change the code above to use the front camera? </p>