I am using AVCaptureSession to acquire images as needed and visualize them in UIImageView.
I rotate the device while capturing and the UI automatically fits with the auto-layout effect, but the visualized image no longer fits. iOS16 rotates the image correctly and the aspect ratio fits correctly.
Even if the image is corrupted, it is displayed with the correct aspect ratio when the ViewController is moved and returned.
As a workaround, it was possible to rebuild the UIImageView when rotating the screen, but I don't think this is a good solution.
I imagine that the UIImageView cache from iOS17 is causing the problem, but is there any good countermeasure?
Thanks!