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 - watchOS Tutorial
From the course: Apple watchOS 7 App Development Essential Training
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.…
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
-
-
-
-
(Locked)
Starting a SwiftUI watch project by extensions3m 48s
-
(Locked)
SwiftUI on watchOS3m 45s
-
(Locked)
Copy a phone interface5m 36s
-
(Locked)
Add a watch interface3m 57s
-
(Locked)
Add previews and scrolling1m 53s
-
(Locked)
Presenting navigation3m 20s
-
(Locked)
Add buttons and dismissals5m 33s
-
(Locked)
Challenge: Ratings page39s
-
(Locked)
Solution: Ratings page7m 28s
-
(Locked)
-
-
-
-
-