Is there any support in JUCE 9 for iPhone Duo so that safe area doesn’t overlap camera/wifi and other toolbar icons.
When in landscape mode (fully open) my app is using safeAreaInsets but they seem wrong for Duo.
Are there other calls to be made to remove these borders from the app?
I can detect that the iPhone Duo simulator is active (“iPhone19,4”) but the other values are unknown by me…
I’ve pushed a few changes to the develop branch to fix the safeAreaInsets issue and a couple of other problems that came up during testing.
Can you please give the develop branch a try?
Sorry, It works correctly when screen is closed or when first opening the screen but when the simulator is rotated the right hand edge indents goes wrong.
How are you testing? Is this behaviour different to other iPhones in the simulator?
The template we have for new projects built from PIPs, and our DemoRunner, do this
#if JUCE_IOS || JUCE_ANDROID
void parentSizeChanged() override
{
if (auto* comp = getContentComponent())
comp->resized();
}
#endif
which also manages situations where the on screen keyboard causes insets dynamically.
This was an old project created by June 9.03
I’ve added the above code to MainWindow class in my app and it seems to work ok now.
Might be worth adding a note somewhere for people porting to iPhone Duo (or should the code be in the DocumentWindow class? (I’ve not investigated any further)
Thanks.
Thank you for confirming.
Here’s an additional change that should apply that behaviour automatically:
With the many long term struggles with JUCE on Android, have these changes been tested there? I can’t help but be suspicious.
I tested on Android, but now I’m a little nervous that I missed something ![]()
At this point, I recommend getting an automated UI testing framework sorted to develop scenario test harnesses for JUCE. The idea is that you would run the same goofy UI and UX tests across the board, across all platforms the same. Boring work, but at least it’d be a good safety net that more or less do once and just maintain. Happy to add an FR, even though it’d be JUCE-developer focused?