From the course: SwiftUI Essential Training

Unlock the full course today

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

Solution: Add StatusBarView

Solution: Add StatusBarView

(energetic music) - [Instructor] Okay, now again, there's lots of ways of doing this but this is the way that I'm going to try to do it, and some of the decisions I made along the way. First of all, you're going to need to have here, of course, a new view. So you're going to do a cmnd+n, or a file new, or whatever way you want to do it, and come up with a new file. I'm going to call this StatusBarView. Go ahead and create it, making sure all these are correct. There it is. And here's my StatusBar. All right, now I'm going to do several things with this StatusBar. I'm going to start here in ContentView and find in here that I have an HStack that already has a lot of this here. So this HStack is two-thirds of everything I want to deal with. So I'm just going to take this HStack and I want to make sure I get that font in there, and I'm just going to cut it, 'cause I don't need it in here. I want to get rid of…

Contents