CameraView icon indicating copy to clipboard operation
CameraView copied to clipboard

captureSession.stopRunning() Unexpectedly found nil while implicitly unwrapping an Optional value

Open chase-robbins opened this issue 1 year ago • 3 comments

image

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

chase-robbins avatar Sep 01 '24 00:09 chase-robbins

I'm facing the same problem using a NavigationStack. Were you able to find a workaround?

ethan-crabb avatar Sep 05 '24 07:09 ethan-crabb

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/

chase-robbins avatar Sep 05 '24 15:09 chase-robbins

Guys, just don't declare manager in CameraView, you can inject it from parent.

jakub-kalamarz avatar Sep 05 '24 20:09 jakub-kalamarz