Does anyone know how to tie the new Watch Series 9 double tap feature to a button and also how to test double tap gesture in the simulator?
Thanks.
Does anyone know how to tie the new Watch Series 9 double tap feature to a button and also how to test double tap gesture in the simulator?
Thanks.
Apple updated gesture specifications to include double tap in watchOS: https://developer.apple.com/design/human-interface-guidelines/gestures
My guess is that you'd define a UIGestureRecognizer (maybe a UITapGestureRecognizer?) and attach it to a view that implements UIGestureRecognizerDelegate.
Not sure how that would be handled in Simulator, however.
Thanks, I will try testing on physical device - I also was unsure of how it would be tested in simulator. And I think it would be WKTapGestureRecognizer? Which I'm pretty unfamiliar with haha. I don't see any mention of double tap in there (https://developer.apple.com/documentation/watchkit/wktapgesturerecognizer) but will try to implement
Also following this. I haven't seen any documentation on this yet..
Any Updates on the Double Tap Feature? It sounds like it will automatically pick a primary Button, but no Idea how to make a Button primary...
This is my problem too. Created a test app with just one button. Still can't select button with double tap gesture when app active.
I would be interested too. the onTapGesture(count: 2) does not work