What is the API for the Apple Watch double tap gesture?

Generated on 8/3/2024

1 search

The API for the Apple Watch double tap gesture in watchOS 11 is the handGestureShortcut modifier. This modifier allows you to identify a button or toggle as the primary action in your app, widget, or live activity. When a user performs the double tap gesture, the system will automatically highlight the outline of the button or toggle to provide a visual indication that this is the action that will be invoked. You can also customize the shape of the highlight using the clipShape view modifier if needed.

For more details, you can refer to the What’s new in watchOS 11 session.