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
- [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…
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
-
-
-
-
-
-
-
-
-
Alerts5m 33s
-
(Locked)
Presenting sheets8m 47s
-
(Locked)
Tab bars4m 53s
-
(Locked)
Stack navigation9m 38s
-
(Locked)
Two-column navigation split view8m 36s
-
(Locked)
Three-column navigation split view7m
-
(Locked)
List interaction5m 46s
-
(Locked)
Challenge: Debugging2m 45s
-
(Locked)
Solution: Debugging10m 32s
-
-
-