Adding keyboard shortcuts in your SwiftUI apps is extremely easy. Just use the .keyboardShortcut(_:) modifier. When pressing and holding the command key, the shortcut will appear in the shortcuts list.

Calendar app opened on an iPad. There is a panel that shows the keyboard shortcuts available because the user is pressing and holding the command key. One of them is command + n to create a new event. Applying the .keyboardShortcut(_) modifier with