I am making some existing game apps compatible with iPhone X. All these games are simply using a fillscreen window and have all their elements drawn manually in OpenGL. I want to make sure buttons and things avoid the notch. I'm not using any storyboards or anything fancy, the initialization is very lightweight.
How can I get the size of the notch? I'm using Objective-C. I'm just looking for a simplest possible call that I can use to say "okay, keep all game UI elements to the right of pixel position x."