title: Access front camera in Swift 4
body: <p>I have this in my camera app</p>
  
  <pre><code>session.sessionPreset = AVCaptureSession.Preset.high
  camera = AVCaptureDevice.default(for: AVMediaType.video)
  
      do {
          let cameraCaptureInput = try AVCaptureDeviceInput(device: camera!)
          cameraCaptureOutput = AVCapturePhotoOutput()
  
          session.addInput(cameraCaptureInput)
          session.addOutput(cameraCaptureOutput!)
  
      } catch {
          print(error.localizedDescription)
      }
  </code></pre>
  
  <p>How do I access the front camera?</p>