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

Gestures in SwiftUI

Mar 25 2021 · 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.

5/5 1 Rating

Version

  • Swift 5.3, iOS 14, Xcode 12.4

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.

1

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

2

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

3

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

4

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

5

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

Contributors

Comments