Fixes a bug where the camera preview may not be visible for several seconds after returning from a child view. The main change is to move the preview implementation to viewWillAppear rather than in viewDidAppear. Also removed redundant logic for starting the capture session. In addition, implemented scan modes, once, oncePerCode and continuous.
Fixes a bug where the camera preview may not be visible for several seconds after returning from a child view. The main change is to move the preview implementation to viewWillAppear rather than in viewDidAppear. Also removed redundant logic for starting the capture session. In addition, implemented scan modes, once, oncePerCode and continuous.