Hi everyone! I'm building a tvOS 18.5 app using SwiftUI in Xcode 16.4, and I'm having trouble reliably detecting button clicks from the 2nd generation Siri Remote.
.onMoveCommand(perform: handleMoveCommand)
func handleMoveCommand(_ direction: MoveCommandDirection) {
switch direction {
case .right: nextQuote()
case .left: previousQuote()
default: break
}
}
Swiping left or right on the remote's touch surface works as expected, the callback fires every time.
However, when I press the physical left/right buttons (outside the touch surface), the input is unreliable. Sometimes it registers, other times I need to press multiple times or nothing happens at all.
I’ve confirmed the view is .focusable(true) and bound with @FocusState.
Is this a known limitation or bug with .onMoveCommand on recent tvOS versions? Or is there a more robust way to handle physical Siri Remote button presses?
Selecting any option will automatically load the page