I have a modal view of style UIModalPresentationFormSheet, which presents a UIImagePickerControllerSourceTypeCamera. The form sheet modal view is presented from a custom view controller container
The image picker forces the app to change to portrait orientation. If the app is rotated to portrait mode before the image picker is dismissed then everything works fine.
However, after the image picker is dismissed whilst the device is in landscape the formsheet style modal view is now positioned off to the top left of its parent frame (see image).
I would guess that the modal view's superview is not rotating in the background. However, once the image picker is dismissed the modal view's frame is set as if it was.