AVCapture freezes ARKit camera on iPad

Hello, we are experiencing a possible bug on ARKit.


When we launch on iPad another controller on push, popover, or modal containing AVCapture to scan QR the video on previous ARSCNView freezes and AR can't get used anymore.


This behavior does not happen on iPhone, when coming back to AR controller the camera works ok. On iPad if we request front camera the image on AR is not frozen, looks like whenever AVCapture request the back camera on iPad then ARKit can't use it anymore.


Any help would be appreciated. Thanks.

Replies

override func viewWillDisappear(_ animated: Bool) {

super.viewWillDisappear(animated)

if Device.isPad(){

sceneView?.removeFromSuperview()

}

}

self.dissmiss

->

self.performSegue(withIdentifier: "QRScanToScene", sender: nil)