How to programmatically disable “Menu” button on AppleTV remote

Thongchai Kolyutsakul
SwiftBlade
Published in
2 min readMar 12, 2024

--

An example screen of TVUIKit’s TVDigitEntryViewController

Problem

When implementing some feature, we may want to prevent user from going out of a particular modally presented screen. For example, a mandatory pin creation screen.

It’s true there’s no back button on the screen. But the user can press “Menu” button on the remote to go to previous screen, exiting the flow that we want…

--

--

Thongchai Kolyutsakul
SwiftBlade

iOS developer since 2009. Working @Viki in Singapore. I write about iOS development, Swift language, and general software engineers tips.