This is a question for macOS, not iOS.
macOS Monterey on MacBook pro 2021 provides a notch for the first time, which hides parts of the menu when in full screen mode or maximized state. In order to apply a modified menu in that case, I'd like to to detect the notch programmatically.
How can I do this? Didn't find anything in the documentation.