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.
Solution - watchOS Tutorial
From the course: Apple watchOS 7 App Development Essential Training
Solution
(upbeat music) - [Instructor] Okay, let's go see what we can do here. And to start, I'm actually going to look at this pizza notification view a little more carefully and you'll see that it already has a variable id, and that variable id will actually make the image and the text. So I'm already set up here with one little exception and that is this needs to be binding. So first of all, change that to binding, and of course, this is now going to complain because it's got this equal zero on the end so I'm going to delete that equals zero. That's going to make this complaint down here, so I'm going to put an id dot constant zero. And so we've set up the pizza notification view. Now we're going to go up one more step to notification view and put id in there. Now let's make sure we know where that is in here. That's actually after text. So I'm going to go here and I can go comma id, colon, and I'm going to put in the id. And…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.