How to use NavigationStack in SwiftUI | Bootcamp #62

Поділитися
Вставка
  • Опубліковано 30 вер 2024

КОМЕНТАРІ • 70

  • @IamTheGreatCornholioo
    @IamTheGreatCornholioo 9 місяців тому +4

    Navigation is by far the worst thing about swiftui

  • @asaadjaber1
    @asaadjaber1 7 місяців тому +1

    The part with the Navigation Stack starts at 10:18.

  • @lincolndickerson1293
    @lincolndickerson1293 Рік тому +19

    You are the most responsible content create ever!
    The very best. Thank you for uodating, deprcating, and overall keeping Swiftful Thinking fresh
    WWDC has a gold mine of content for you. The new Swift Data stuff is fantastic can’t wait to see where you take it.

    • @SwiftfulThinking
      @SwiftfulThinking  Рік тому +7

      Thanks! Yea, I will try to make iOS 17 videos soon 🤙😎

    • @Marcn.ar.
      @Marcn.ar. 7 місяців тому

      Please!!!!!!!!!!! You are HUGE@@SwiftfulThinking

  • @HieuNguyen-hv4us
    @HieuNguyen-hv4us Рік тому +11

    most friendly-for-beginners SwiftUI coach on UTube. +1 respect.

  • @christianmoreno7390
    @christianmoreno7390 Рік тому +5

    Hey Nick! Can you do a video on implementing machine learning through Firebase/SwiftUI? For example, a recommendation system to recommend content to users? There isnt that much documentation on the subject. Thanks!

  • @kevincosta2132
    @kevincosta2132 8 місяців тому +4

    Hello Nick! Great video like always i just wanted to point out that even if you say that implementing the stackPath will ruin the Int destinations at 19:38, this is not the case. It ruins the Int destinations just because you initialized the path as an array of strings [String] if you initialize the path as a NavigationPath() it will then work with all destination types! You should probably pin this for future viewers, or change the description of your video to point that out!

    • @jalapisco
      @jalapisco 2 місяці тому +1

      Just tried it and it worked like you said it would. Thanks for pointing that out 👍

    • @kevincosta2132
      @kevincosta2132 2 місяці тому

      @@jalapisco You are welcome!

  • @avirubhattacharjee8987
    @avirubhattacharjee8987 Рік тому +4

    Thanks Nick

  • @evangelosspyromilios5994
    @evangelosspyromilios5994 Рік тому +1

    17:33 what happens if both lets say 'fruits 'and 'x' are of the same type ? how you can differentiate then ?

  • @KirankumarGaware
    @KirankumarGaware Рік тому +1

    Could you please explain why it print twice? I tries to find but not able to find. Please explain

  • @khanhduyle5287
    @khanhduyle5287 4 місяці тому

    Thank you for your very good teaching. I'm just starting out so the thing I'm a little confused about is why init is called twice when navigating through screen 2. Can you explain to me?

  • @trile2799
    @trile2799 Місяць тому

    Is it possible to have a navigationStack inside another navigationStack?

  • @10_GRANDS
    @10_GRANDS 3 місяці тому +1

    lets add this everyone's favourite b-a-n-a-n-a

  • @RussChannel13
    @RussChannel13 Рік тому +1

    12:48 It was as unexpected and shocking as Sopranos ending :D

  • @charita.r
    @charita.r 7 місяців тому

    What if the minimum deployment target is 15.0? How to manage the navigation destination and navigation link?

  • @Designguidetv
    @Designguidetv Рік тому +1

    the whole thing about .self is confusing to me. Why is it explicitly needed to mention .self ?

  • @VishalDesai-o8s
    @VishalDesai-o8s 6 місяців тому

    How to navigate next screen without any action??

  • @owencunn
    @owencunn Рік тому +1

    Thanks for everything you do Nick,
    I have a suggestion for a future video. SwiftUI Navigation Stack and TabView - returning to the root view to scrolling to the top when appropriate.
    I've searched online and can't find a complete example of this anywhere!

  • @PattayaASMRWalking
    @PattayaASMRWalking Рік тому +1

    Yeah the bootcamp is back! :D best tuts out there, thanks nick

  • @stephenweber33
    @stephenweber33 7 місяців тому

    @State private var stackPath = NavigationPath()
    Quoting Paul Hudson, "if you need heterogeneous data to use a special type-erased wrapper called NavigationPath. This can work with any hashable data, so you could add a few strings, a few integers, a few custom structs, etc, and as long as they all conform to Hashable you’re okay.

  • @1slyboy
    @1slyboy Рік тому

    How do you get the preview to enable the debug output to the console? I've made sure Debug Area->Active Console. I set Preference->Behaviors->Generates Output->[Show] Debugger with [Current Views] And I don't see any options on the preview (e.g. right-clicking play). The print statements do show up when using the simulator.

  • @Jandroverse
    @Jandroverse 10 місяців тому

    Hey great video, but i've looked all over youtube no one shows what im about to ask you. Could you show us how to move to another view, without having to click on it. basically if an event happens it sets a flag and if that flag is true move to the other page. Thanks in advance.

  • @kembel2761
    @kembel2761 9 місяців тому

    Hey I love your videos and I've followed a bunch of your tutorials. Currently I am building my own apps but I encountered a problem I can't seem to fix.
    So that situation is I have a NavigationStack which has a goes to a View. That View then presents a sheet. My problem now is, I'd like to go back to the rootview from the sheet, but I can't seem to make it work. Basically I want to dismiss the sheet AND it's parent navigationLink view. Please help :(

  • @jalapisco
    @jalapisco 2 місяці тому

    Was really struggling to get my head around NavigationStack until now. Thanks for this awsome video 👍

  • @stelluspereira
    @stelluspereira 6 місяців тому

    Excellent presentation style & easy to understand in ‘bite size’
    I would really really appreciate if you could do a split navigation for iPad

    • @SwiftfulThinking
      @SwiftfulThinking  6 місяців тому

      How to use NavigationSplitView in SwiftUI | Bootcamp #72
      ua-cam.com/video/Ua37Oof6H1Q/v-deo.html

    • @stelluspereira
      @stelluspereira 6 місяців тому

      Thankyou Sir, later I found the video & commented it
      Keep up the good work sir

  • @barche75
    @barche75 Рік тому

    Question is how to open screen without any Hashable object. My solution is to create empty struct for such screen. And I’m also wandering is it possible to show modal screen using navigation path or hashable array 😊

  • @polyglotmona
    @polyglotmona 10 місяців тому

    :D THANK YOU so much, I had such a lot of fun doing this with you, and the watermelon made me laugh so hard :D I'm looking forward to learning more with your videos.

  • @vojtechkalivoda8455
    @vojtechkalivoda8455 Рік тому

    Are ou also going to cover iOS17 new SwiftUI stuff right after this iOS16 changes? I am sure new developers would prefer to never learn all the property wrappers for the Views that are now being deprecated ig 😅 atleast i would prefer that 🤣 thanks for the video Nick!

  • @dre5671
    @dre5671 10 місяців тому

    I'm finally understanding how this works, thank you for comparing with the old way to shed more light!
    I'm also wondering what if we didn't have a value to pass, but simply wanted to navigate to another view?

  • @xinl370
    @xinl370 Рік тому

    Thanks for the video! Is there a way we can accelerate, or even remove the default slide-in animation when changing pages (e.g. when clicking "Super segue!" from the content page, or clicking "Back" from other child pages)? Thanks!

  • @AdityaNarayan-u3d
    @AdityaNarayan-u3d Рік тому

    Hey Bro I find your content awesome and most suitable for understanding and applying. I would request you to make video on The Composable Architecture (TCA)

  • @PaulDabit
    @PaulDabit 2 місяці тому

    When are you going to teach us how to charge people and make them pay using their debit card or credit card? Can you do that please

  • @ShabadM
    @ShabadM 8 місяців тому

    Thanks for providing valuable content like these...

  • @itsayan1616
    @itsayan1616 Рік тому

    Best explanation.
    Thanks Nick, Waiting for more.😀

  • @galaxiegalaxie5003
    @galaxiegalaxie5003 Рік тому

    Thank you for such a great content. what if my second and third screen that has navigation destination of int type on both screen, will there be a problem?

  • @spradohak
    @spradohak Рік тому

    Awesome Nick, I was hoping that you make videos for these SwiftUI updates.
    Thank you so much

  • @dugrut1325
    @dugrut1325 Рік тому

    Yeah, nice to see you back Nick, and something that I can understand.

  • @БогданОлейник-ю3э

    The best content on SwiftUI, thanks for telling us about the new features

  • @michaelq927
    @michaelq927 3 місяці тому

    Thank you for much Nick! I start form #1up to here in couple weeks, have no code back ground, not understand all of them, but will learn bit by bit, step by step , setting the foundation for my future development in App making skill, and you are one of the person i need to credit for if I become billionaire !

  • @LebenWerden
    @LebenWerden 4 місяці тому

    Thank you. Video helps a lot.

  • @vladc.5311
    @vladc.5311 6 місяців тому

    Been following your SwiftUI tutorials and I want to say you are doing an amazing job teaching the community all the cool Swift UI features that Apple brings every year. Thank you!

  • @abhishekpednekar211
    @abhishekpednekar211 Рік тому

    You just made it so easy. Cheers 🍻

  • @andresraigoza2082
    @andresraigoza2082 Рік тому

    So awesome! thank you so much!

  • @Notkdenben
    @Notkdenben Рік тому

    Glad to see an update on this content.

  • @gogog119
    @gogog119 Рік тому

    Thank you for your update!

  • @jzaae
    @jzaae Рік тому

    loving the new intro nick!!

  • @knowledgeispower4953
    @knowledgeispower4953 8 місяців тому

    Really Respect Man...🤝

  • @georgehabib4333
    @georgehabib4333 Рік тому

    Thanks for your videos Nick, you're awesome!
    Newbie question though..
    If I have only 2 items on a screen - say PLAY and OPTIONS buttons that lead to a GameView and OptionsView, can I simply use NavigationLink (destination, label) ? or will that be deprecated ?

  • @JeckyKA
    @JeckyKA Рік тому

    Thank you Nick!

  • @ortezan4186
    @ortezan4186 Рік тому

    Great as always.

  • @SiamakAshrafi
    @SiamakAshrafi Рік тому

    Thank You!

  • @김성연-z8u
    @김성연-z8u Рік тому

    i love you

  • @eliasayele1102
    @eliasayele1102 Рік тому

    Thanks

  • @ZeroTorySeats
    @ZeroTorySeats Місяць тому

    I’ve never used NavigationView so I would have preferred just an explainer of NavigationStack

  • @MobileDeveloper1965
    @MobileDeveloper1965 11 місяців тому

    Stop teaching. Your teaching is confusing.

    • @dre5671
      @dre5671 10 місяців тому +3

      He's literally one of the best teachers out there (notice how every other comment disagrees w you).
      You should stop watching if you aren't ready for this content yet. Check out his super beginner courses or gtfotta here

  • @NiggaInTech
    @NiggaInTech Рік тому

    bruh...kid you not , I finally decided to learn about this last night, disliked most tutorials, then BOOM the 🐐 answers me prayers