Closed nozokada closed 3 years ago
@twostraws Any chance you can review and merge this PR soon? I've tested it in iOS 14.1 and it's still working correctly.
Thank you for your time and efforts!
I can merge this if you resolve the conflicts.
Thank you!
This is a fix for #11 where the video capture session restarts and the preview layer is reloaded because pulling down a sheet partially (not completely) fires
viewWillDisappear
andviewDidAppear
.I made the following changes:
viewDidAppear
to avoid redundant preview layer instantiationviewWillDisappear
intoviewDidDisappear
so that the capture session won't stop until the sheet is completely pulled down and closed