From the course: Apple watchOS 7 App Development Essential Training

Unlock the full course today

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

Launching a timeline

Launching a timeline - watchOS Tutorial

From the course: Apple watchOS 7 App Development Essential Training

Start my 1-month free trial

Launching a timeline

- [Instructor] We've got a working timeline but doesn't work exactly the way we want. We want it to launch the pizza stages when we order a pizza. We're going to get that working next. So let's close up the app again. And this time we're going to start not in the complication controllers but now we're going to go to detail view. Because in detail view, if you remember correctly we have an order button right here. All right, I'm going to add something, the order button. And we'll start by just adding a new method called reloadTimeLine and we'll do everything else out of there. And what this will do is it'll reload the timeline so that it'll launch the timeline the way that we want it. Then I'm going to go up the top of the code I think, and I'm going to put it above this var here and put in a func reloadTimeLine. And now in this, I'm going to first of all reset now to the current date. Now, for testing, I launched the…

Contents