Closed VoordeMensen closed 3 years ago
@VoordeMensen Because viewWillDisappear
and viewDidAppear
in ScannerViewController
are fired every time you pull down the sheet partially (not completely). It basically restarts the video capture session and reloads the preview layer.
I ended up doing the following:
viewDidAppear
to avoid redundant preview layer instantiationviewWillDisappear
into viewDidDisappear
so that the capture session won't stop until the sheet is completely pulled down and closedSee #21 for code changes
This issue has been fixed in #21.
I think it's time to close it.
Thank you!
Clicking/touching/moving the sheet freezes the camera for 8 seconds - no warnings or errors in debug - any thoughts?