Posts

Post not yet marked as solved
0 Replies
658 Views
Hello, I've noticed that on iOS 14 presenting the camera with UIImagePickerController centers the cameraview when the display is set to zoomed on iPhone X. When the display is in standard mode, the cameraview's origin point is on the top of the screen. I position the camera with: if (IS_IPHONEX) { self.imagePickerController.cameraViewTransform = CGAffineTransformTranslate(self.imagePickerController.cameraViewTransform, 0.0, 0.0); } In standard display mode, the cameraview is top aligned. In zoomed mode, it is centered. I believe this is unintended behavior. Is there a way to have the zoomed mode cameraview respect the standard coordinates? I've tried detecting if the display is set to zoomed by comparing the nativescale to scale but that isn't a future proof solution. Thank you, Nick
Posted Last updated
.