Hiding the Notch in my app for MacBook Pro 14/16

There is a big mess and lack of information about adapting macOS apps for the notch in new MacBook Pro 14" and 16".

I simply want to keep the notch in a normal window size. And hide the notch when user switches the main window to a fullscreen mode.

I thought that I should add NSPrefersDisplaySafeAreaCompatibilityMode key to a Info.plist.

But now I don't know HOW my app will look with this key.

Does NSPrefersDisplaySafeAreaCompatibilityMode key gives the same visual result as "Scale to fit below built-in camera" in Finder for a certain app? Or not?

When I watched a video where it was shown how "Scale to fit below built-in camera" works, I'm now in a panic, because this option reduced the app window proportionally increasing black borders on the left, right and top sides. It's the most terrible solution which could be chosen.

My app should look correctly with a normal window size. And I need the solution only for a fullscreen mode, keeping the same screen width and reducing only top area. Not reducing the entire window!

UPD. I think that we will recommend our customers to contact with Apple regarding the notch problem on their new Macbook Pro in a fullscreen mode. I don't see any good solution on our side. We'll remove NSPrefersDisplaySafeAreaCompatibilityMode key and keep things "as is".

NSPrefersDisplaySafeAreaCompatibilityMode should not be required for most regular apps. If you use standard API to go fullscreen, there's nothing to do on your side. The app will be displayed just below the notch.

But I agree, there's a lot of confusion.

Thanks for your reply!

It would be helpful if Apple could show several learning videos (or just screenshots) with examples how our apps look at a normal window size and in fullscreen mode with different modes. I think that many macOS developers have the same question now.

Hiding the Notch in my app for MacBook Pro 14/16
 
 
Q