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.

More modifiers

More modifiers

- [Instructor] All right, we've made one modifier, so let's make another one to handle the status bar here. Should here, I thought we've got a bad background here and I can't see what I'm going on with my status bar. So let's go back in here to style sheet. And I'm going to close this up 'cause I don't need anymore. Style sheet should be up here somewhere. Just under app background. I'm going to make another one of these structs. And this time we're going to call it StatusBarStyle. Again, use ViewModifier, we'll put the body in with content and we'll return some view. All right. And then again, we put content first so we have the content and then we put whatever modifiers we need here. Okay. And you don't have to put in just one. So we had app background only had one modifier. We're going to put in a whole bunch of them. We're going to start with the foreground style, which will be sky, and then we'll change the font. We'll make the font title two and the padding will be three. And…

Contents