Sample code of Mac Catalyst Tutorials.
NOTE
To run and debug the Mac app, ensure your Mac is running macOS 11 or later.
Xcode 12.1 or later.
References
Detecting Changes in the Preferences Window
Adding Menus and Shortcuts to the Menu Bar and User Interface