title: Keyboard shortcuts in SwiftUI
body: <p>I am making a SwiftUI app and I would like to add keyboard shortcuts using a menu bar.
  I've already see apple's video <a href="https://developer.apple.com/videos/play/wwdc2019/240/" rel="nofollow noreferrer">SwiftUI on all devices</a>, but I couldn't figure out how they integrated the <code>menu.xib</code> into their app.</p>
  
  <pre class="lang-swift prettyprint-override"><code>#if targetEnvironment(macCatalyst)
  // MacOS
  #else
  // iOS
  #endif
  </code></pre>
  
  <p>doesn't work too. 
  I've tried to add a menubar to my project, but I couldn't compile. Have you got any idea on how to add one ?</p>