From the course: SwiftUI Essential Training
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Space modifiers
From the course: SwiftUI Essential Training
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 this 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. You can make it like 55 and you get a huge amount of space. 555 and then…
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.
Contents
-
-
-
-
-
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
-
(Locked)
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
-
-
-
-
-
-
-