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

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…

Contents