title: Type 'AVCaptureDevice' has no member 'defaultDevice'
body: <p>Working on a QR code reader. I am new to programming so this might be an easy fix. The error is "Type 'AVCaptureDevice' has no member 'defaultDevice'" Thanks for the help in advance!</p>
  
  <pre><code> //Creating session
      let session = AVCaptureSession()
      //Define capture device
      let captureDevice = AVCaptureDevice.defaultDevice(withMediaType: AVMediaTypeVideo)
  
      do
      {
          let input = try AVCaptureDeviceInput(device: captureDevice)
          session.addInput(input)
      }
  </code></pre>