Orientation does not work on iPhone 17 and above.

I'm receiving output from avcapturesession and capturing an image using Vision, but the image is output in landscape orientation instead of portrait.

Even when I set the orientation to up in ciimage, cgimage, and uiimage, the image is still output in landscape orientation.

On iPhones 16 and below, the image is output in portrait orientation.

But on iPhones 17 and above, the image is output in landscape orientation.

Please help.

Same problem, bro. Here is my thread https://developer.apple.com/forums/thread/805193

Orientation does not work on iPhone 17 and above.
 
 
Q