New API to control front camera orientation like native Camera app on iPhone 17 with iOS 26?

The iPhone 17’s front camera with the new 18MP square sensor and iOS 26’s Center Stage feature can auto-rotate between portrait and landscape like the native iOS Camera app.

Is there a Swift or AVFoundation API that allows developers to manually control front camera orientation in the same way the native Camera app does? Or is this auto-rotation strictly handled by the system without public API access?

New API to control front camera orientation like native Camera app on iPhone 17 with iOS 26?
 
 
Q