# Adopt AVCaptureDeviceRotationCoordinator > Rotation must stay correct as your app moves between the inner and outer displays. Adopting the coordinator also unlocks a performance win. Source: https://iphoneduosupport.com/checklist/camera-rotation-coordinator/ Severity: major Category: camera Applies to: swiftui, uikit Requires: ios-27.1 SDK Symptom: Captured photos or video come out rotated, or preview orientation disagrees with the saved file. Sources: https://developer.apple.com/videos/play/tech-talks/111465/ Last verified: 2026-09-09 --- `AVCaptureDeviceRotationCoordinator` keeps capture orientation correct, and on iPhone Duo it updates as your app moves between displays — a transition that did not exist on any previous iPhone. ## Adopt the coordinator Adopt it for all capture outputs, then turn off the compatibility path it replaces: ```swift class AVCapturePhotoOutput: AVCaptureOutput { var isCameraSensorOrientationCompensationEnabled: Bool { get set } } ``` Apple's guidance is to adopt the rotation coordinator **and then disable sensor orientation compensation**, which is a real performance gain: the system stops rotating buffers to compensate. Order matters. Disabling compensation before the coordinator is correctly wired gives you rotated output. Adopt first, verify, then disable. ## Preview layout Two settings control how the preview fills a display that is a different shape from the sensor: ```swift class AVCaptureVideoPreviewLayer { var videoGravity: AVLayerVideoGravity { get set } } class AVCaptureDevice { var dynamicAspectRatio: AVCaptureDevice.AspectRatio? { get } } ``` Both front cameras have **square sensors** with an ultrawide field of view, so there is real latitude in what you present. Use `dynamicAspectRatio` on the ultrawide cameras to pick a landscape aspect ratio and fill the display. Apple also recommends mirroring the preview when a rear camera is facing the subject, so a user framing a selfie on the cover display sees the mirrored image they expect. ## How to verify Capture a photo and a video in every pose and on both displays. Check orientation in the preview, in the saved file, and after sharing to another app. Rotate mid-recording and confirm the result is still correct. --- Published by iPhone Duo Support (https://iphoneduosupport.com). Not affiliated with Apple Inc.