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

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