NavigationStack 2: Programmable NavigationPath and DeepLinks

preview_player
Показать описание
This is the second video in the 3 part ioS 16 Navigation Series. In the first video we learned about the NavigationStack and all of it's components and in this video we will be extending that knowledge

We will extending the Navigation stack another level and see how we can use the NavigationPath to implement a Back to Root button.

Following that, we will see how easy it is to use the NavigationPath to enable programmable navigation through Deep links using a Custom URL Scheme

If you want to support my work, you can buy me a coffee :)

Table of Contents:
0:00 Introduction and Overview
3:20 One Level NavigationStack
7:20 Two Level NavigationStack
15:00 Global Router and Back to Root
19:29 Deep Linking

Starter Project Files:

Completed Project:

References mentioned in video:
Charts Framework Videos
CustomURL Scheme - Apple Reference Article

All Videos in the iOS16 Navigation Series
Video1: Introduction to NavigationStack
Video2: Programmable NavigationStack and DeepLinks
Video3: NavigationSplitView

Other References:
Stewart Lynch's YouTube Channel:
Stewart Lynch on Twitter:
Рекомендации по теме
Комментарии
Автор

Hi Stewart
First let me start by saying that all your videos are great. I really enjoyed every single one of them and I like your style of teaching. It's concise and well organized. It is far better than many udemy courses i have taken in the past. I would have happily paid for yours.
Thank you for all the informative videos.

burgrider
Автор

Sir, it's a joy to watch your little tutorials. They are very well done. Excellent. My compliments and a big thank you.

paulberghege
Автор

This is so cool, you are doing a great job explaining this powerful SwiftUI features, thank you so much!

andresraigoza
Автор

Fantastic! Your stuff just works. Especially once I had figured out how to exit Bash. I have a few uses for the Reminders direct link back to a specific page in the app, but I still need to work out how to programatically create the Reminder.

brucknerdevilliers
Автор

Great videos on the new navigation. Thanks!

gakkieNL
Автор

At last I understand! Thank you. Deep linking this way is so clean to me at least. :)

officialspaceefrain
Автор

Hello, Stewart,

Normally, as far as _SwiftUI_ is concerned, I am sailing down on the Hudson river, — but today, I got Lynched ;-)

Thank you so much, this was very useful. I appreciate your concise way of presenting things with a real-world example. NavigationPaths are still somewhat difficult for me since I want to make them work with a whole navigation several levels deep, coming from a JSON file. But this is a very good starting point for me.

See you ;-)

anotherguycalledsmith
Автор

Great explanation of this stuff with very nice examples. Thanks.

richardhasson
Автор

Thank you for as always awesome video! Salute to you!

nickpatel
Автор

Great video! I really liked the bash command to test deep links on simulator. I didn't know it was possible until today. It took me a while to see it work though because I had two simulators open and didn't notice it was sending it to the one that was hidden.

ChaseMcElroy-ulns
Автор

Fantastic content. You answered a question I was going to have to research later.

DavidShaw-dcre
Автор

Sjoe what a video thanks Stewart, Pierre

pierremarais
Автор

Thank you very much for your valuable service, I always fallow your videos to improve my career.

kasunjayasekara
Автор

Great one, Stewart! 👏 When resetting the router we do not get an animation; it just pops back to root. Is this a bug in iOS16?

rebeloper
Автор

Hey,
Nice solution and very good video. I've been playing around with NavigationStack myself as well. In my scenario I want to use the Router in a ModelView. As I cannot use @EnvironmentObject in ModelView I ended up making the Router a singleton class so the ModelViews can get access to it freely. Do you think this is a good solution? Or how would you recommend to inject Router into my ModelViews?

akosmorvai
Автор

When will the 3th video launch? Eager to learn :)

gakkieNL
Автор

This is a bit off topic, but is there a way to style, or make more readable, the values list on the right side of the chart. What does 2.0E6 equate to in numbers that we would recognize? Otherwise very useful info and very well presented... as usual!

kenturnbull
Автор

I got really stumped today and maybe it will all come together but if not I want to start off on the right foot tomorrow ( I’ve spent all but 12 days in the last 2 years spending hours trying to learn this. There is not one part of me this comes naturally to so it takes me 10 to 20 times longer to learn everything and I’m very confused when it comes to the model and the city being part of the country, the example that is foreign to me. I don’t think my project needs that but I don’t know what to do if not following you. I realized at about 8 minutes in that me not comprehending that part of the model was an issue.

bugsyace
Автор

Hi Stewart, another excellent video as usual. I have a question about embedding a NavigationStack inside a NavigationSplitView. When I do that I get the following message printed in the output, "Update NavigationRequestObserver tried to update multiple times per frame."
I'm using Xcode 14.2, and this is in a macOS app. Can you replicate this?

nitesh-maharaj
Автор

I'm not having title or navigation bar in my rootView, but when I pop back to root view with this I get a blank navigation bar so my other elements in the rootView gets pushed down the size of a navbar, anyone know how to solve this? :)

kevinzetterlind