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

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…

Inhalt