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
From the course: SwiftUI Essential Training
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…
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
-
-
-
-
-
-
-
-
-
Alerts5m 33s
-
(Locked)
Presenting sheets8m 47s
-
(Locked)
Tab bars4m 53s
-
(Locked)
Stack navigation9m 38s
-
(Locked)
Two-column navigation split view8m 36s
-
(Locked)
Three-column navigation split view7m
-
(Locked)
List interaction5m 46s
-
(Locked)
Challenge: Debugging2m 45s
-
(Locked)
Solution: Debugging10m 32s
-
-
-