title: Menu items grayed out using split view controller - Catalyst
body: <p>I'm working to bring my iPad app to the Mac using Catalyst. My app uses a split view controller. The master view controller has two rows that can be tapped that let a user take a photo or select a photo from the camera roll.
  I am trying to add two menu items with keyboard shortcuts for each of these actions.</p>
  
  <p>After adding the menu items following the steps in a WWDC video, the menu items are grayed out when the app first launches. Below is a screenshot showing the app first launched and Take Photo and Select From Camera Roll are both grayed out.
  <a href="https://i.stack.imgur.com/XScRb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XScRb.png" alt="Grayed out menu items"></a></p>
  
  <p>However, if I toggle/tap any item in the master view controller, the menu items become enabled and work as intended. Once I select a menu item, it goes back to being grayed out and I need to toggle/tap an item in the master view controller to make them enabled again.
  <a href="https://i.stack.imgur.com/7TOec.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7TOec.jpg" alt="enabled menu items"></a></p>
  
  <p>I can't figure out why the items are being grayed out. I'm thinking it may be related to the split view controller but have not been able to figure anything out.</p>
  
  <p>The code I'm using to add the menu items is pretty simple. I added <code>@IBAction</code> to the methods that take a photo and select from the camera roll. I added a Main Menu to my Storyboard file with two new Inline Menu items and connected each to to the methods. </p>