Gesture Recognizers in iOS
Nov 27 2018 · Video Course (48 mins) · Beginner
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
Learn a bit of the history of gesture recognizers in iOS, and what we will be covering in this course.
1Attach a UIPanGestureRecognizer to a view in Interface Builder, and write some Swift to have your pan gestures interact with that view.
2Leverage UIKit's animation API, combined with information from your pan gesture recognizer, to decelerate a view you toss around the screen.
3Pinch & Rotation
5:39Manipulate the CGAffineTransform associated with a view based on pinch and rotation gestures. Also, learn to use multiple gesture recognizers at once!
4Practice working with the types of gesture recognizers you've already learned about, resulting in simultaneous control of multiple views with multiple gestures.
5Extend your knowledge of creating gesture recognizers, from Interface Builder, to Swift, and get introduced to UIGestureRecognizerDelegate.
6Now that you're familiar with how to use existing gesture recognizers, you'll dive into their inner workings, creating one of your own.
7Introduction to simd
7:20Even 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!
8Challenge: simd
3:40With a primer to simd under your belt, see if you can finish tidying up the vector math that your gesture recognizers rely on.
9Conclusion
1:34Review all the types of UIGestureRecognizers you've learned about, and get a recommendation on where to learn more.
10
Comments