simulator problem

I can't get UIScreen.main.bounds to return the right values when the device rotates in the simulator. It either keeps the same values after rotation or they are backwards (width and height, that is). This is kind of a nasty problem - I can't seem to figure this one out. It works correctly on a physical device but not the simulator.
Can you share your code. UIScreen.main.bounds seems to work fine for me
https:// imgur.com/a/5F9lZtp



simulator problem
 
 
Q