From the course: Complete Guide to SwiftUI

Unlock this course with a free trial

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

Challenge: Add StatusBarView

Challenge: Add StatusBarView

(upbeat music) - [Instructor] Okay, it's time for another challenge. This time we're going to call it StatusBarView. So here's what our phone looks like right now. And you can see on the phone that we have three objects towards the top. The zero orders there, the $0, and the little menu and orders button. And all three of those are a little crowded up there. And I'd like them to be on one view that we can move around as we need to as a status bar. So we're going to make the new view to consolidate them, call it again StatusBarView, and it'll be in the order of the count, then the button in the middle, and then total. Use white with title 2 for the font. And don't use the background, we're going to keep it transparent, sort of like what we got already. And then you're going to put it back in that same spot that we have now for those three in between the header and the item view. And once you do that, delete all that other stuff so that it's not taking up any extra space. Okay, give…

Contents