Camera app best practices

This thread has been locked by a moderator; it no longer accepts new replies.

As a reminder, the recommended approach to monitor camera rotations, including on upcoming hardware, is to use the AVCaptureDevice.RotationCoordinator / AVCaptureDeviceRotationCoordinator API. In many common scenarios on iPhone Duo, proper use of the rotation coordinator is the only way to ensure that your camera previews and captures use the orientation expected by the user. AVCaptureVideoOrientation has been deprecated as of iOS 17.0 and iPadOS 17.0.

When switching cameras in your app, make sure to create a rotation coordinator for that device. To ensure that your app has implemented the rotation coordinator API correctly, you should test different orientations and sizes of your app on an iPad with Stage Manager enabled.

Additional information:

Sample Code: Supporting device rotation in your camera app

Tech Talk: Build a great camera experience for iPhone Duo

WWDC23 session: Support external cameras in your iPadOS app

Camera app best practices
 
 
Q