From the course: SwiftUI Essential Training
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Materials and shadows
From the course: SwiftUI Essential Training
Materials and shadows
- [Instructor] If you look what we did with backgrounds and zoom in a little, you'll see two small problems. The first one is the pizza name here is hard to read over that gradient. So we still got to work on that a little bit. The other problem is a little more subtle. If I go over here into my switches and turn on the color scheme to dark appearance, everything disappears. And that has to do with the way that dark works and the fact that I set up dark wrong when I did the assets. But there's another way to get around that problem and that is to work with some special backgrounds that we're going to be looking at. So I'm going to go ahead and close back that color scheme to light again so we can see what we're doing. So let's go ahead and start looking at these things and they're called materials. So let's go into MenuItemView, and down here in our ContentView from MenuItemView we have a background of sky. And I'm going to…
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
-
-
-
-
-
Presenting views2m 19s
-
(Locked)
Space modifiers2m 54s
-
(Locked)
Shape modifiers3m 54s
-
(Locked)
Text modifiers8m
-
(Locked)
Color modifiers6m 4s
-
(Locked)
Basic backgrounds8m 29s
-
(Locked)
Materials and shadows7m 17s
-
(Locked)
Scale modifiers4m 42s
-
(Locked)
Size modifiers5m 25s
-
(Locked)
Clean-up joined views6m 9s
-
(Locked)
Challenge: Clean up OrderView1m 28s
-
(Locked)
Solution: Clean up OrderView8m 36s
-
-
-
-
-
-
-