I have a tvOS app, with a UITabBarController as the main entry point for the main storyboard. If the user is not logged in, the UITabBarController presents a LoginViewController modally.
When the user presses the Menu button on the Siri remote, the system automatically dismiss the LoginViewController and shows the UITabBarController. I want the app to instead exit to the tvOS headboard.
Expect the solution to involve either a UITapGestureRecognizer to override the Menu button action, or overriding pressesBegan/pressesTouched, but I haven't found a solution yet.
This following snippet works, and is acceptable behavior based on the expected behavior for a menu button in Apples HIG for Remotes and Interactions
2020s syntax: https://stackoverflow.com/a/68052750/294884