Iphone X margins?


Is there a “JUCE” way of computing the margins Apple describes on the iPhone X here:

Are there any JUCE macros that determine which type of iOS device is being used? Or is that question something better answered by Apple’s documentation and is beyond the scope of JUCE?

regarding the margins, I did this manually, based on the images showing the “safe area” in this link: https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/adaptivity-and-layout/
specifically: https://developer.apple.com/design/human-interface-guidelines/ios/images/LayoutGuides_Landscape.svg

It’s definitely just guessing, and gets me in the ballpark, but I wish there were a more official “JUCE” way of doing it. Any ideas?