NSPrefersDisplaySafeAreaCompatibilityMode
A Boolean value that indicates whether the app prefers to run in compatibility mode when necessary.
Discussion
On Mac computers that include a camera housing in the screen bezel, the system provides a compatibility mode to prevent apps from unintentionally putting content in the region the housing occupies. When this mode is active, the system changes the active area of the display to avoid the camera housing. The new active area ensures your app’s contents are always visible and not obscured by the camera housing. The system activates this compatibility mode when an app that requires it places a window behind the camera housing in the current desktop or full-screen space.
On Mac computers that include a camera housing, the Finder adds a checkbox to your app’s Get Info panel to enable or disable compatibility mode. If your app’s Info.plist file includes the NSPrefersDisplaySafeAreaCompatibilityMode key, the Finder doesn’t add that checkbox; instead, it uses the value of the key to determine whether to run your app in compatibility mode. Set the value of the key to true to always run your app in compatibility mode, and set it to false to never run your app in compatibility mode.
After you audit your app and verify that it runs correctly on Mac computers that include a camera housing, add this key to your Info.plist file and set its value to false. If you discover issues during your audit, add the key and set its value to true until you’re able to fix those issues.