From the course: SwiftUI Essential Training
Schalten Sie den kompletten Kurs noch heute frei
Join today to access over 23,300 courses taught by industry experts.
Stack navigation
From the course: SwiftUI Essential Training
Stack navigation
- [Instructor] Another form of navigation is stack navigation. SwiftUI is improving in this type which is fundamental to UIKit. The SwiftUI version is not as easy as UIKit but you can get done some of the same things. I'm going to use OrderDetailView to update the orders for custom items using stack navigation. Now usually this is for lists and especially lists on phones. So we're going to go here where the order items are and update that. So I'm going to be doing stuff right here in the order item. So let's go into the OrderView to start this. And I'm going to make some changes here. Major part of this change will come right here. And this is the code that runs that list because we're using it as a ForEach list. So I'm going to make some changes here to start. The first one I'm going to do is I'm going to change the ScrollView into a NavigationStack. Okay? You can see here it says NavigationStack root, and that's what…
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.
Inhalt
-
-
-
-
-
-
-
-
-
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
-
-
-