Navigation in SwiftUI & iOS 16

  Рет қаралды 32,584

CodeWithChris

CodeWithChris

Күн бұрын

Пікірлер: 57
@markaurelius61
@markaurelius61 2 жыл бұрын
This is the first time I had seen NavigationPath, but I think that is what makes NavigationStack useful
@FloWritesCode
@FloWritesCode 2 жыл бұрын
For sure. This is what really enables programmatic navigation with little overhead. It's also doable without NavigationPath, but needs a bit more setup.
@FloWritesCode
@FloWritesCode 2 жыл бұрын
These changes are SO GOOD! Thanks for letting me host this lesson😁
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Wunderbar! @AdrienVillez
@bigmtnstudio
@bigmtnstudio 2 жыл бұрын
Thanks for the mention, Flo. 🤗 Awesome overview!
@ninumedia
@ninumedia 6 ай бұрын
Excellent tutorial and really appreciate the thoughtful examples. I learned multiple things I didn't know already. You earned a new subscriber.
@jamesallison9725
@jamesallison9725 2 жыл бұрын
Wonderful!! This is the best Navigation Stack tutorial I have found so far. Thanks - I am subscribing right now.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Awesome, thank you! - Pat
@gondaimgano
@gondaimgano 2 жыл бұрын
I love UIKit Storyboards but this new Navigation for SwiftUI is a game changer.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
It really is. Thanks for watching! - Pat
@gondaimgano
@gondaimgano 2 жыл бұрын
@@CodeWithChris thank you to you!
@chrisstromberg6527
@chrisstromberg6527 Жыл бұрын
This is probably one of the better explanations on SwiftUI Navigation that I have seen. There are some other great online instructors for SwiftUI, but they all pretty much dropped the ball on explaining NavigationStack.
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you for the kind words! :) - Pat
@ColeDano
@ColeDano 2 жыл бұрын
Oh this is huge, navigation was a buggy mess. Nicely shown @Flo writes Code.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Great!! I'll pass the message along! Flo has a bunch of videos on his own channel to by the way! (kzbin.infovideos) @AdrienVillez
@EricTMCode
@EricTMCode 2 жыл бұрын
What a great Navigation Stack tutorial, thank you 🤩
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Glad you liked it! - Pat
@japonska2009
@japonska2009 Жыл бұрын
so if i understand this correctly(as a beginer in SwiftUI), when i am in between the lines of navigationDestination, i can already make a new ContentView design with Z/V/H stacks and add Spacer and all of that stuff for all the data i got from 1 Navigation Link(here would be some API data i got from the web)? I hope this is understandable
@APWatchdog
@APWatchdog 2 жыл бұрын
Very useful video. Can you elaborate on how NavigationLink would work inside a Grid or GridRaw. It seems to no work.
@FloWritesCode
@FloWritesCode 2 жыл бұрын
It works just fine in my little test app. What does your setup look like? NavigationStack(path: $path) { Grid { GridRow { Color.green } GridRow { NavigationLink("Test Link", value: Person.examples[0]) } } .navigationDestination(for: Person.self) { person in Text(person.name) .font(.headline) } } This example works just as expected for me in Xcode 14 Beta 3.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hi there! Can you post your concern on our CodeCrew forum codecrew.codewithchris.com? We have our tech support staff that are ready to help you out! :) - Pat
@TheSpiralnotizblock
@TheSpiralnotizblock 2 жыл бұрын
Will the old NavigationLink in future also be deprecated? Sometimes its better than the new one.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
NavigationView will still be in use for quite some time, especially for app projects that are still on iOS 15 and below, since NavigationStack is not backwards compatible. In reality, production apps, especially those that have an existing user base can't easily raise the minimum iOS version to the latest one upon release as it would hurt their user metrics. Raising the minimum iOS compatibility would mean dropping a percentage of the user base from using your app. - Pat
@ColeHowe-el5qg
@ColeHowe-el5qg Жыл бұрын
Thank you man :) Your videos have been *extremely* helpful for me!! :')
@CodeWithChris
@CodeWithChris Жыл бұрын
Happy to hear that! :) - Pat
@JasemAlqaseer
@JasemAlqaseer 2 жыл бұрын
Thanks for the great video. I have a question please. I was able to initialize a subview with a binding property with the previous navigationLink initializer. is it possible to do that with the new navigationDestination? thanks
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hi Jasem! You can post your question on our CodeCrew forum and have our team assist you. Just visit this link codecrew.codewithchris.com. - Pat
@w0mblemania
@w0mblemania 2 жыл бұрын
This was very useful, thanks.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Glad it was! Thanks for watching! :) - Pat
@GorYeghoyan
@GorYeghoyan 2 жыл бұрын
Awesome, thx a lot!
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thank you for watching! - Pat
@dugrut1325
@dugrut1325 Жыл бұрын
... clear as MUD!
@CEdits-47
@CEdits-47 Жыл бұрын
mud isn't clear
@umairkhan4982
@umairkhan4982 Жыл бұрын
Great explanation
@thomascole8216
@thomascole8216 Жыл бұрын
Very nice! Great job...
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you very much! - Pat
@bigmtnstudio
@bigmtnstudio 2 жыл бұрын
Thanks!
@CodeWithChris
@CodeWithChris 2 жыл бұрын
No problem! - Pat
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thanks for the Tip @Mark! @AdrienVillez
@andre.unsal.13
@andre.unsal.13 2 жыл бұрын
I'm comprehending this for the most part, but how do I get this paradigm working with custom SwiftUI View types? I don't know how I can just enum my SwiftUI views or make them hashable. Each view uses different observedobjects, and my ios15 code works - not sure how to make it work on ios16. On the hunt right now.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hi Andre! We suggest posting your question on our CodeCrew forum and have our tech support staff assist you. Just visit this link codecrew.codewithchris.com - Pat
@nikitapatidar8907
@nikitapatidar8907 2 жыл бұрын
What if I don't want to use list and how can pass data over multiple views.?
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hi Nikita! We suggest posting your question on our CodeCrew forum so that our tech support staff can help you. Just visit this link codecrew.codewithchris.com. - Pat
@YaroslavSherstyuk
@YaroslavSherstyuk 2 жыл бұрын
How use presentation Detents together with tabview?
@CodeWithChris
@CodeWithChris 2 жыл бұрын
We suggest posting your question on our CodeCrew forum codecrew.codewithchris.com. Our tech support staff will help you out! - Pat
2 жыл бұрын
Thanks! 🙌🏻
@CodeWithChris
@CodeWithChris 2 жыл бұрын
No problem! - Pat
@srome0711
@srome0711 2 жыл бұрын
Great video
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Glad you enjoyed it! - Pat
@enoch8835
@enoch8835 Жыл бұрын
THANK U
@CodeWithChris
@CodeWithChris Жыл бұрын
You're welcome! - Pat
@GoeHybrid
@GoeHybrid 2 жыл бұрын
Well, no backward compatibility, as always. "Thanks" apple. I swear to go, ios development is a joke.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
SwiftUI is a very young language and we can expect a lot more changes in the future too. Indeed, things are going to be interested in September when all this goes live. @AdrienVillez
@w0mblemania
@w0mblemania 2 жыл бұрын
@@CodeWithChris The problem is that SwiftUI isn't very young any more... It was released in 2019, and we're up to SwiftUI 4. And with every release, there are show-stopping problems that force us to go back to UIKit. And everyone has to keep asking "is SwiftUI production-ready?". Apple need to dogfood SwiftUI... the vast majority of their apps aren't using SwiftUI yet they tell us that SwiftUI is the best way to make an app. SwiftUI feels like the future, but we have to work in the here and now.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Yes... well, I was comparing it to something like Java, C, or even Objective-C. But yes, working with iOS and SwiftUI is a non stop Learning-Coding-Learning-Coding-Change/Fix-Learning-Coding loop. I do understand your frustration. From my experience, Xcode does a pretty good job to suggest edits and new ways to write a line of code when converting an older project. Not sure if this will be the case. PS: This comment thread will slowly disappear in the abyss of youtube's older comments (well, at leas this is how they are given to use), so I would recommend you to join us in the Forum! codecrew.codewithchris.com/. Come and chat with us and talk SwiftUI with the team!) @AdrienVillez
SwiftData Basics in 15 minutes
15:18
CodeWithChris
Рет қаралды 51 М.
How to use NavigationStack in SwiftUI | Bootcamp #62
23:59
Swiftful Thinking
Рет қаралды 37 М.
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 6 МЛН
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,7 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
NavigationStack - SwiftUI Programmatic Navigation - iOS 16
20:20
This NEW SwiftUI Feature Is AMAZING | Navigation Stacks
20:05
Why You Should Use The SwiftUI Coordinator Pattern
18:45
Rebeloper - Rebel Developer
Рет қаралды 16 М.
How to Make an App - Lesson 1 (Xcode 16 Updated)
27:21
CodeWithChris
Рет қаралды 6 М.
SwiftUI Navigation - NavigationView & NavigationLink Tutorial
17:34
Data Flow in a SwiftUI App
33:15
CodeWithChris
Рет қаралды 54 М.
I Made an iOS App in MINUTES with This AI Tool!
13:20
Creator Magic
Рет қаралды 292 М.
How to use SwiftfulRouting in SwiftUI | Swift Packages #5
32:00
Swiftful Thinking
Рет қаралды 7 М.
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 6 МЛН