title: Detect when a UIViewController has been dismissed by the remote's menu button in tvOS
body: <p>I am working on a <strong>Apple TV app (tvOS)</strong> where the <strong>first view controller</strong> open a <strong>second view controller</strong> via a <strong>segue</strong>. When I choose an option on the second view controller it execute an unwind action on the first view controller.</p>
  
  <p>My problem is when I press the <strong>remote menu button</strong>, the <strong>second view controller modal dismiss automatically</strong> and I find no way to execute an action on the first view controller or to be notified. </p>
  
  <p>How can I detect when a controller opened via a segue has been dissmissed by the <strong>remote's menu button</strong> ?</p>
  
  <pre><code>┌─────────────┐               ┌─────────────┐   
  │ First View  │    ┌─────┐    │ Modal View  ├──┐
  │ Controller  ├────┤segue├────▶ Controller  │  │
  └─────────────┘    └─────┘    └─────────────┘  │
                  ┌────────────┐      ┌───────┐  │
                  │ Modal Auto │      │ Menu  │  │
    Action ??  ◀──┤  Dismiss   ◀──────│Button │◀─┘
                  └────────────┘      └───────┘   
  </code></pre>