From the course: SwiftUI Essential Training

Unlock the full course today

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

Tab bars

Tab bars

- [Instructor] Things are looking a little crowded on our app. Navigation cleans that up by making different views for different functions. Our next of the major navigation views for Swift UI is the TabView. TabViews may remind you of the pickers we used in an earlier video. You encompassed them in a TabView, and then tag them, though this time with a label. So we're going to change navigation between the Order view and the Menu view. So we're going to use a different structure for presenting variables, and I'm going to need to mess with that a little bit as well. So let's start figuring out how to do this. All right, we're going to start here in ContentView. And the big thing we're going to start with to make this work is the TabView itself. And this VStack, it's got to be this VStack because we've got to have it as the root view and it doesn't work if you make it sub views. So we're going to start here and I'm going…

Contents