From the course: Apple watchOS 7 App Development Essential Training

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Presenting navigation

Presenting navigation - watchOS Tutorial

From the course: Apple watchOS 7 App Development Essential Training

Start my 1-month free trial

Presenting navigation

- [Narrator] We've a nice interface for our DetailView. Next I'll hook up the navigation to display the details. So I'm going to head over to the PizzaOrderView, and I'm going to give myself more space, I'm going to do a command shift Y and a command zero and that gives me some space. And here's where we're going to see a change between SwiftUI and other platforms in a watchOS. We don't use a NavigationView but we do use a NavigationLink. Navigation links are a kind of button that launches to a destination. Now, I'm not going to want my gestures confused. So, I'm going to comment out the TapGesture here. And so I've got this TapGesture, take that and then I'm going to command slash to comment it out. Navigation links will push the DestinationView to the top of the display stack. They also have a LabelingView which I'm going to use to RowView. So, you're going to embed inside of the NavigationLink my RowView itself.…

Contents