The corners are curved so rectangular safe areas are: 1) portrait==> from the bottom of the notch to the top of the corners at bottom full width of the screen. 2) Landscape there are 2 options: a) Notch on left ==> from the right of the notch on left to the full right side of screen. The height from the bottom of the top right corner to the top of the bottom right corner. OR b) Notch on left ==> from the right of the notch on left to the left of both right corners and full height screen height.
So in landscape it's either full screen height or full screen width(except for the notch) If the notch is on the right it's the same but reversed. Now you can use the areas beyond the corners but the corners of your card will be cut off by the rounded screen corners Ralph DiMola IT Director Evergreen Information Services [email protected] -----Original Message----- From: use-livecode [mailto:[email protected]] On Behalf Of scott--- via use-livecode Sent: Wednesday, February 23, 2022 3:16 PM To: How to use LiveCode Cc: [email protected] Subject: iphoneSafeAreaInsets() I was updating a library to use the new iphoneSafeAreaInsets() for retuning the inset of the iPhoneX notch. I was surprised to see that it reports an inset on both left and right sides when in landscape even though the notch is only on one side. I would have expected an iPhone in landscape to report an inset on the bottom (for the home indicator, which it does report) and on whichever side the notch was actually on. While this can usually be figured out with mobileDeviceOrientation() (though not always) it seems like an extra step in addition to just being inaccurate about one side. Am I missing something or should this be a bug? -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email [email protected] booth 1-360-734-4701 ------------------------------------------------------ _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
