Camera direction and rotation in the half-folded pose on iPhone Duo

"Build a great camera experience for iPhone Duo" covers the device open and the device closed, including reconfiguring the session from AVCaptureDeviceDirectionCoordinator's change handler when the forward-facing camera changes. It does not cover the partially open pose, which "Leverage multiple displays and scenes on iPhone Duo" treats as a first-class hinge state with a continuous angle.

Consider a camera app that keeps a live preview on screen and adopts AVCaptureDevice.RotationCoordinator — the documented remedy for cases like the square front sensor on iPhone 17, where a hard-coded 90° leaves the preview tilted — applying videoRotationAngleForHorizonLevelPreview to both the preview and the capture connection.

In the partially open pose the two halves are at different physical attitudes: one stands up, the other lies flat.

  1. Which camera does AVCaptureDeviceDirectionCoordinator report as forward-facing while the hinge status is partially open? Does the hinge angle affect that decision?

  2. RotationCoordinator derives its angle from device attitude. With the two halves at different attitudes, which one does videoRotationAngleForHorizonLevelPreview reflect — the half carrying the active camera, the half hosting the preview layer, or a single device-level reference?

  3. If an app deliberately keeps the rear camera on the scene while its preview is drawn on the half facing the user, is that a supported configuration, or is the coordinator expected to override that choice?

  4. Is any of this modelled in the iPhone Duo simulator, or does the partially open pose require real hardware to test?

Question 4 matters for planning: building against a rotation value that only appears on device would be worth knowing about before the hardware ships.

Hi kushku, For #1, in partially open or "mini laptop" mode, your scene/UIView is on the inner display (the half that's like the laptop screen, not the lying flat part), so the inner builtin ultra wide will be reported as the front camera, and the built in back facing cameras will be reported as rear facing. If you close the device, then the scene will be moved to the outer display and the outer built in ultra wide will now be reported as the front facing camera.

Don't worry too much about exact hinge angles. Trust the coordinator — it will tell you which camera to choose as your scene moves to a different screen.

For #2, videoRotationAngleForHorizonLevelPreview reflects a single device-level reference.

For #3, yes, you can use the rear facing camera in laptop mode. The inner screen is the only screen that will be lit up in that mode. The outer display will be facing down on the desk. The rear facing camera is the half without a display.

#4 Camera Capture is currently not supported in the iOS simulator. You can call all the APIs, but no cameras are present.

Camera direction and rotation in the half-folded pose on iPhone Duo
 
 
Q