How do I use double tap in watchos
Generated on 7/31/2024
1 search
In watchOS 11, the double tap gesture has been expanded to work in more places within your app. Here are some key points on how to use double tap in watchOS 11:
-
Automatic Scrolling: Double tap will now automatically scroll through lists, scroll views, and vertical style tap views. Your app will inherit this behavior without additional coding.
-
Primary Action: You can designate a primary action for the double tap gesture, such as activating a button or toggle in your app, widget, or live activity in the smart stack. To do this, apply the
handGestureShortcut
modifier to the button or toggle you want to identify as the primary action. -
Visual Indication: When a double tap gesture is performed, the system will highlight the outline of the button or toggle to indicate that this is the action being invoked. You can customize the shape of this highlight using the
clipShape
view modifier. -
Consistency and Predictability: Ensure that double tap is used consistently and predictably within your app. If your app already uses lists or scroll views, avoid using double tap to execute actions within those views to prevent conflicts.
-
On-Screen Controls: Double tap will trigger the primary action only if the control is on screen. If the control is off screen, the system will scroll towards it.
For more detailed information, you can refer to the What’s new in watchOS 11 session.
Relevant Sessions
Platforms State of the Union
Discover the newest advancements on Apple platforms.
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.
Design Live Activities for Apple Watch
Starting in watchOS 11, Live Activities from your iOS app will automatically appear in the Smart Stack on a connected Apple Watch. Learn how to optimize the layout of your Live Activity for the wrist, and provide the right level of information and interactivity at the right time.
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.