This is part of the "iOS and Swift for Beginners" learning path. View Path

Gesture Recognizers in iOS

Nov 27 2018 · Beginner · Video Course · 48 mins

Touch interaction is a fundamental component of iOS and UIGestureRecognizer is the key to easy-to-use gestures beyond simple button taps. Learn about it here!

Version

  • Swift 4, iOS 12, Xcode 10

Introduction

1:51 Free

Learn a bit of the history of gesture recognizers in iOS, and what we will be covering in this course.

1

Attach a UIPanGestureRecognizer to a view in Interface Builder, and write some Swift to have your pan gestures interact with that view.

2

Deceleration

6:24 Free

Leverage UIKit's animation API, combined with information from your pan gesture recognizer, to decelerate a view you toss around the screen.

3

Manipulate the CGAffineTransform associated with a view based on pinch and rotation gestures. Also, learn to use multiple gesture recognizers at once!

4

Practice working with the types of gesture recognizers you've already learned about, resulting in simultaneous control of multiple views with multiple gestures.

5

Extend your knowledge of creating gesture recognizers, from Interface Builder, to Swift, and get introduced to UIGestureRecognizerDelegate.

6

Now that you're familiar with how to use existing gesture recognizers, you'll dive into their inner workings, creating one of your own.

7

Even though the app you've made in this course is small, you've written quite a bit of math-heavy code. simd can make that easier on you in the future!

8

With a primer to simd under your belt, see if you can finish tidying up the vector math that your gesture recognizers rely on.

9

Conclusion

1:34

Review all the types of UIGestureRecognizers you've learned about, and get a recommendation on where to learn more.

10

Contributors

Comments