Adapt an AVFoundation or AVKit camera app for iPhone Duo, where opening or closing the device moves the app between displays and a camera can start facing the other way. Use when choosing between the virtual front camera and the inner and outer ultra-wide cameras, adopting AVCaptureDeviceDirectionCoordinator, fixing preview mirroring or rotation after a display change, switching capture inputs safely, or verifying saved photos and video on the device.