SwiftUI Long Press Gesture and Tap Progress Animation

DesignCode on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerUI13 min

About this video

Shows how to build a button whose progress animation depends on how long it is pressed, using a SwiftUI long press gesture.

What you’ll learn

  • Detect a long press gesture on a SwiftUI button
  • Animate tap progress based on how long the press lasts