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.
Platforms State of the Union
Discover the newest advancements on Apple platforms.
What’s new in watchOS 11
Explore new opportunities on Apple Watch, including bringing Double Tap support to your watchOS app, making your Smart Stack widgets even more relevant and interactive, and displaying your iOS Live Activities in the Smart Stack.
What’s new in UIKit
Explore everything new in UIKit, including tab and document launch experiences, transitions, and text and input changes. We’ll also discuss better-than-ever interoperability between UIKit and SwiftUI animations and gestures, as well as general improvements throughout UIKit.
Explore game input in visionOS
Discover how to design and implement great input for your game in visionOS. Learn how system gestures let you provide frictionless ways for players to interact with your games. And explore best practices for supporting custom gestures and game controllers.