Hi everyone,
For various optimization purposes, I want to get the device's max display size without the safe areas for both portrait and lanscape.
I can use the UIWindow's safeAreaInsets, but that only gives me the current safe areas, not the one for opposite layout (assuming there is only portrait and landscape).
I had a look at UITraitCollections (I really thought I could achieve it with it), but it seems like a dead end.
Anyone can help me with that ?
Thanks!
There is no way to query the safeAreaInsets for a non-current state, and there is no guarantee that they would be consistent (they usually are, but system state can always change in such ways that the safeAreaInsets you saw at the launch of your app are no longer valid later during the execution of your app).