CameraView
CameraView copied to clipboard
captureSession.stopRunning() Unexpectedly found nil while implicitly unwrapping an Optional value
Steps to reproduce:
- Create SwiftUI Project
- Implement a TabView
- Implement MijickCameraView into one of the tabs
- Display tab with camera view, switch off, and return to tab with camera view
- App crashes
I'm facing the same problem using a NavigationStack. Were you able to find a workaround?
I'm facing the same problem using a NavigationStack. Were you able to find a workaround?
Nope. I migrated to this package instead.
https://enebin.github.io/Aespa/documentation/aespa/
Guys, just don't declare manager in CameraView, you can inject it from parent.