Open MattMur opened 9 years ago
Found a couple of things, foremost being the pod spec is not pulling the latest code changes!
Was able to fix the issue by pulling latest code changes, and then initializing new PRARManager after coming back from UIImagePickerController. I also made sure to clear out the old camera layers from the view:
- (void)prarDidSetupAR:(UIView *)arView withCameraLayer:(AVCaptureVideoPreviewLayer*)cameraLayer
andRadarView:(UIView*)radar {
// Clear old
[[self.ARView viewWithTag:AR_VIEW_TAG] removeFromSuperview];
[self.ARView.layer setSublayers:@[]];
// Set new
[self.ARView.layer addSublayer:cameraLayer];
[self.ARView addSubview:arView];
[self.ARView addSubview:radar];
}
Here is the flow that is causing this freezing behavior:
I've tried stoping PRARManager before displaying camera, and then starting after camera is finished, but no luck. Something about loading UIImagePickerController breaks PRARManager's camera feed.
I'll report if I find any fixes