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.

Solution: Clean up OrderView

Solution: Clean up OrderView

(upbeat music) - [Instructor] Okay, let's go ahead and try this out. Now, first thing I'm going to do is, I'm going to stay right here in content view and change this to true so I can see what I'm doing when I go back into content view. Okay, so we got that done and that'll pop up over an order view for my preview, but I'm not too worried about that right now. So I'll let it go right now. So here's what we've got so far for the order view. The first thing I want to do is work on this order item, 1990 bit here. And that happens to be inside of order row view. So I'm going to go in order row view first and work on that part. So I have this now in an H stack for these two. I'm going to change this and I'm going to embed it in a V stack to start. So I'm going to go here and embed it in a V stack. Okay, and now I've got a V stack. I'm going to take the text piece here. I'm going to cut that and paste it up here. So that's now on top. And this needs to be pushed over. So I got two ways of…

Contents