When switching between landscape/portrait, the gray overlay retains the old size, and thus doesn't cover the view entirely along the bottom or along the right side of the screen. It needs to use new APIs to detect size class/coordinate space changes instead of orientation changes to adjust the overlay size.
When switching between landscape/portrait, the gray overlay retains the old size, and thus doesn't cover the view entirely along the bottom or along the right side of the screen. It needs to use new APIs to detect size class/coordinate space changes instead of orientation changes to adjust the overlay size.
Steps to reproduce
(and vice versa for broken portrait)