From the course: Complete Guide to SwiftUI
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Space modifiers
From the course: Complete Guide to SwiftUI
Space modifiers
- [Instructor] Now we can see our app better by dividing the order view from the menu view. However, some things are still a little bit of a problem. Let's take a look over here at order view for an example here. And as you can see here, we're all the way up against the edge of the screen. So there are ways of handling this. And you can also see these are a little too tight. So I'm going to start handling these issues about these being too tight. And the way I do that is with a modifier called padding. So we're going to go over here where it says order row view, and I'm going to put in this modifier padding. And you can see everything spaces itself nicely and they're very big spaces. So you can actually reduce the amount of space in your padding by putting a number in there and we can get something nice like five. Of course you can make it outrageous to make it like 55 and you get a huge amount of space and 555 and then…
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)
-
-
-
-
-
-
-
-
-
-
-
-
-