title: Error=Extra trailing closure passed in call,
body: <pre><code>    //creates the session
      let session = AVCaptureSession()
  
      //Defines the capture device
     AVCaptureDevice.default(for: AVMediaType.video)
     {
        let input = AVCaptureDeviceInput(device: captureDevice)
        session.addInput(input)
      }
  </code></pre>
  
  <p>Not sure how to solve this error any help would be greatly appreciated</p>