From the course: Complete Guide to SwiftUI
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Solution: Add views
From the course: Complete Guide to SwiftUI
Solution: Add views
(upbeat music) - [Instructor] The process is the same for all of these, though, I'll use both methods to do this. The first method is using the template. So, I'm going to go here to Xcode and go to File, New, File. Click on SwiftUI View. Make sure everything is correct here, and I'm going to change that one to MenuItemView. Make sure everything is set right. Yes, it is, good. And that looks good so I can go ahead and Create it. And now, you can see we've got MenuItemView over here. I'm going to do it again. File, New, and go to here to File. And we're going to do another SwiftUI View, so go ahead and hit Next. And I'm going to make this MenuRowView. Create that file. That one works good. Now, we're going to do OrderRowView, and I'm going to use the Blank File. So, we'll go over here again to File, New, File, which I could of course use Command N to get, and go over here to Swift File and hit Next. Again, we've got the same situation, I'm going to be calling this OrderRowView. Create…
Contents
-
-
-
-
(Locked)
Embed a stack view6m 29s
-
(Locked)
Text views3m 41s
-
(Locked)
Image views with SF Symbols5m 22s
-
(Locked)
Iteration with ForEach5m 13s
-
(Locked)
Images and assets4m 56s
-
(Locked)
Labels2m 22s
-
Add view2m 49s
-
(Locked)
Challenge: Add views26s
-
(Locked)
Solution: Add views2m 33s
-
(Locked)
Extract subviews8m 4s
-
(Locked)
Subviews with parameters6m 37s
-
(Locked)
Challenge: Ratings view44s
-
(Locked)
Solution: Ratings view3m 55s
-
(Locked)
-
-
-
-
-
-
-
-
-
-
-
-
-
-