This course is available as part of the Professional subscription. To learn more click here

Gestures in SwiftUI

Jan 27 2022 · Video Course (25 mins) · Intermediate

Learn how to use SwiftUI’s Gestures to add dynamic touch interactions to your apps. Quickly add one of SwiftUI’s five basic gestures, customize gestures for more control, and combine multiple gestures to build more sophisticated interactivity.


  • Swift 5.5, iOS 15, Xcode 13

Gestures in SwiftUI

Add a Tap Gesture

3:56 Free

Learn how to add interactivity and animation to the Cardeo flashcard app with a basic tap gesture.


Even basic gestures, like the drag gesture, can be customized to create more dynamic touch interactions.


If you need to store a gesture’s values while it is active, try out the @GestureState property wrapper.


Sometimes one gesture isn’t enough! Learn how you can combine multiple gestures to act simultaneously.


Learn to add multiple gestures to a view that will act in sequence, or only one at a time.


Who is this for?

This course will be best for developers with some Swift and SwiftUI experience who are looking to add more touch interaction to their apps.

Covered concepts

  • SwiftUI
  • Tap Gesture
  • Drag Gesture
  • Long Press Gesture
  • Magnification Gesture
  • Rotation Gesture
  • Simultaneous Gesture
  • Sequence Gesture
  • Exclusive Gesture