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

Solution - watchOS Tutorial

From the course: Apple watchOS 7 App Development Essential Training

Start my 1-month free trial

Solution

(intro music) - [Instructor] For our "Solution." I'll start with the SwiftUI code. So I'm going to go and close these up. And head over to extension name here. And then pick a new file. I pick SwiftUI view, next. And it's all set for the extension, which is good. And then at the top here, I'll put in the name of this. Which will be graphic rectangle view. And I'll create. And that gets us our graphic rectangle view. First thing I'm going to do, because I will be using Clockit in here. Is I'm going to import Clockit. And the second thing I'm going to do. Is put some variables in here. First the stage and then stages. All right. And down here, this is complaining about stage. So I'm going to take care of that. But I'm also going to do something else here. Is. I really don't need an app view of this. I still want to do a complication view of this, for my preview. So I'm going to start putting that in here.…

Contents