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.
Clean up joined views
From the course: Complete Guide to SwiftUI
Clean up joined views
- [Instructor] We've messed with a few things in the app's menu view, and before we go farther, I want to clean up that title and review some of the modifiers we've learned so far 'cause I think it'll be kind of useful for you to see something. This is a common occurrence, you have two views and then you combine them. You want to move around some of the modifiers so they work better in that circumstance and check what's good. And I do have a bunch of those that I want to look at here. First of all, I really don't like this frame, in case you haven't figured that one out yet. So I'm going to go ahead and delete the frame here. Let's also go look at this back in portrait. So let's go back over here. I'm going to click change my orientation, and so there we go for that. The second thing I'm going to do is I don't like how this capsule here is around this for a larger text, so it doesn't work really well. So I put 'em around both of these views, and with that, I can look at it much more…
Contents
-
-
-
-
-
(Locked)
Presenting views2m 19s
-
(Locked)
Space modifiers2m 54s
-
(Locked)
Shape modifiers3m 54s
-
(Locked)
Text modifiers8m
-
(Locked)
Color modifiers6m 4s
-
(Locked)
Basic backgrounds8m 29s
-
(Locked)
Materials and shadows7m 17s
-
Scale modifiers4m 42s
-
(Locked)
Size modifiers5m 25s
-
(Locked)
Clean up joined views6m 9s
-
(Locked)
Challenge: Clean up OrderView1m 28s
-
(Locked)
Solution: Clean up OrderView8m 36s
-
(Locked)
-
-
-
-
-
-
-
-
-
-
-
-
-