This post is from the Activity iPhone Duo Photos & Camera Q&A.
Dual Capture Applicability on iPhone Duo
Recommended
You cannot use the inner built in ultra wide camera when the inner display is closed (for any camera case). Otherwise the cameras are available at any time.
Can we dynamically/programmatically determine this state:
when the inner display is closed
with code such as:
.onHingeChange { hingeState in isClosed = (hingeState.status == .closed) }
Please don't use hinge changes to determine what cameras are available. Instead, use the AVCaptureDeviceDirectionCoordinator. It will tell you which cameras are available for the given UIView. Then as the system moves your scene to different displays, you'll know which cameras are available.