I have an app with a single view controller.
This code:
NSLog(@"%@", NSStringFromUIEdgeInsets(self.view.safeAreaInsets));
Logs this:
{0, 0, 0, 0}
Apple documentation states:
For the view controller's root view, the insets account for the status bar, other visible bars, and any additional insets that you specified using the additionalSafeAreaInsets property of your view controller.
Why does it return 0 then? Shouldn't it return the size of the status bar? Where can I find the height of the status bar? Where can I find the height of the app switcher at the bottom? The app switcher is the line element that you swipe up to switch between apps.