Setting up Gestures in SwiftUI

DesignCode on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerUI4 min

About this video

A short SwiftUI tutorial showing how to set up a basic drag gesture and animate a view based on gesture events. It is aimed at people learning to build interactive iOS interfaces.

What you’ll learn

  • Set up a basic drag gesture in SwiftUI
  • Animate a view in response to gesture events