   required init(cancelButtonTitle: String) {
     super.init()
     
-    configureComponents()
+    configureDefaultComponents()
     setupUIComponentsWithCancelButtonTitle(cancelButtonTitle)
     setupAutoLayoutConstraints()
     

  }
  
  func switchCameraAction(button: SwitchCameraButton) {
    
  }
  
  // MARK: - AVCaptureMetadataOutputObjects Delegate Methods

    }
  }
  
  private func configureDefaultComponents() {
    session.addOutput(metadataOutput)
    session.addInput(defaultDeviceInput)
    
    metadataOutput.setMetadataObjectsDelegate(self, queue: dispatch_get_main_queue())
    metadataOutput.metadataObjectTypes = [AVMetadataObjectTypeQRCode]
    previewLayer.videoGravity          = AVLayerVideoGravityResizeAspectFill
