From the course: SwiftUI Essential Training

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Solution: Debugging

Solution: Debugging

(upbeat music) - [Instructor] All right, so for some solutions. You'll probably approach these differently than I do but let's just go down my list here of how I did them. All right. First thing I want to do is go all the way to the bottom of the code here for OrderDetailView. Then you'll see that we have a background color of Surf and for some reason on some of my devices I was getting a circle. And if you want to make sure you don't get a circle, the easiest way to do that is to put in rectangle. Done. Just make sure you put a capital there, okay. And now it's going to stay in a rectangle. So it could be that it may have automatically put itself where it has extremely large rounded rectangle in there. For some reason, and I don't know what it was but that's a good way to make sure. If you wanted a rectangle, that's one way to do it. Next we're going to put in an alert here. So let's go up the code a bit and we…

Contents