If you use
Design Resolution, then you’re probably using
Like it is done in the HelloWorld.
I think most developers do.
The main idea
origin = getIPhoneXSafeAreaOrigin();
size = getIPhoneXSafeAreaSize();
origin = getVisibleOrigin();
size = getVisibleSize();
Then use the
origin and the
size to position your UI.
Unfortunately for me, I do not use
getVisibleOrigin() in my code since I use
FIXED_HEIGHT, so I now have to add it everywhere.