I’m using XCode 11.1 and building/testing an app that automatically resizes on orientation changes. When I test the app on a tablet running iOS 12 it works fine, but on a device with iOS 13 I get a black bar on the right side of the screen when the layout changes from portrait to landscape:
A similar thing happens when the device rotates from landscape to portrait orientation–in this case the black area is at the bottom. It looks like the app is getting the correct width/height information in the resized() callbacks and the layout is being adjusted propertly, and that the black area is covering part of the screen. When I print out the width/height of the app’s main window (juce::DocumentWindow) and the app’s main component, the sizes reported are correct (the width/height flip after the orientation change and reflect the size of the entire screen). When I try this in the iOS simulator I get the same behavior (but only when the orientation changes from portrait to landscape–the black area doesn’t appear at the bottom when going the other way).
I think this is probably an iOS 13 issue, but I’m not entirely sure. I’m using JUCE 5.4.5 with the latest Projucer. I’m setting setFullScreen(true) and setResizable(true, false) on the main window, but these don’t seem to have any effect (these were mentioned in similar forum posts a while back).
Does anyone have any idea what’s happening and how to fix it?