From the course: Apple watchOS App Development: Advanced APIs

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Gestures

Gestures

From the course: Apple watchOS App Development: Advanced APIs

Start my 1-month free trial

Gestures

- [Instructor] I, earlier in this chapter, got rid of our "cancel" button; it's time to put it back. We don't have space for it here on the watch face, but instead of adding a button, what I'm going to do is make a gesture out of this area here, so when you tap it, it cancels the pizza order. So we're going to do this with a tap gesture recognizer. So ahead and stop the app, and find a tap... By the way you can also look at a "GES," and you'll see all the gesture recognizers: tap, swipe, long press, and pan. I'm going to go with the tap, here. What I'm going to do, is I'm going to drag it up, somewhere in here. We're going to start it back here in the background, and I'll open this up, I'll put it in my "Animated Scene," and it attaches to whatever object is above it. So, actually, I could take it a little further down, attach it, for example, to the order label, like this. Okay? But I'm going to just put it on the animated scene, so we're going to be everything on that scene. We'll…

Contents