Post

Replies

Boosts

Views

Activity

Reply to onTapGesture in Menu or not working
@DTS Engineer It seems that the tap event only fires if the Select button is double-clicked. I've tried replacing the .onTapGesture with: .onTapGesture(count: 1) { ... } .gesture(TapGesture().onEnded { ... }) .highPriorityGesture(TapGesture().onEnded { ... }) These all produce the same results, where the closure only runs when the Select button is very quickly double-clicked. I am not using these tap gesture listeners on a Menu, but just on a SwiftUI view, so this isn't isolated to the Menu view type. In my experience, this is not reproducible on tvOS 18 Simulators, but is reproducible on physical hardware. As additional context, this happens while using both versions of the Siri remote (A1513 and A2540) and on both Apple TV models that I've tested with (A1625 and A2169). As previously noted by @aanderson27 , this is a regression that has started happening with tvOS 18 and does not affect code running on tvOS 17.x or earlier.
Oct ’24
Reply to onTapGesture in Menu or not working
Following up, I was able to stack .onLongPressGesture(minimumDuration: 0.01) { ... } and .onLongTouchGesture(minimumDuration: 0.01) {...} successfully as a workaround. Otherwise, I've been having some issues wirelessly debugging on a physical device and haven't tried using simultaneousGesture yet
Oct ’24