Enum Navigation in iOS 16

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

КОМЕНТАРІ • 66

  • @larryburris6761
    @larryburris6761 Рік тому +11

    Simple and elegant solution explained in a clear and concise manner. One of the best instructional channels on UA-cam! Thank you, Stewart!

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

    🤯 conforming to the View protocol is gold 👏

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

      Thanks. I normally learn new things from you.

  • @duffelduffel
    @duffelduffel 5 місяців тому

    I'm late to the party but many thanks for this. I like the organization of content and the ability to load Views directly. After messing around with it I can jump around TopicViews by adding a navigationLink to a TopicView but that does add Views to the stack without removing them when you navigate back. Combined with what I learned in your Navigation Stack Part 2 tutorial I can add a NavigationPath and remove Views from the stack to navigate back two screens, go directly to the root menu screen, etc.

  • @Jager-yoo
    @Jager-yoo Рік тому

    WOW. I didn't expect an enum could take the View protocol. Worth giving it a shot!

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

    I love how you start small and then keep adding on the possibilities with the enum !

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

    Excellent, short, and not much code. I like the multiple select keyboard cursor shortcuts and the simplified use of .navigationDestination(), iOS 16 specific that replaces NavigationLink(destination:).

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

    One can try very hard to find some weak spot in your videos, but there aren’t any. Well done!!

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

    Amazing video, i've seen lots of videos covering this topic, but no one did it as good as you. Bravo.

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

    I watched this again yesterday and today and this is an awesome video that nobody else has out there that I have seen and I appreciate it so much. Stewart you are a very special teacher!

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

    Thank you Stewart 🎉✨💫

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

    Steward, I found your channel lately and finding each video incredibly helpful. Thank you so much. Please keep sharing those which are fantastic learning for us

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

    This is exactly what I needed. I appreciate the great video friend 🤙

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

    Very helpful. Thanks Stewart!!

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

    Just what I was looking for. Another Brilliant tutorial. You're now becoming my goto for tutorials sir. Thanks very much for this .. Champion !!

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

    If I have watched your this great video, I should have saved myself many hours of efforts to complete my project where I need to layout couple of views in the old way! Thank you! Indeed!

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

    Just what was looking for ... Thanks!!!

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

    Beautiful! Thanks for sharing these great tips

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

    Thank you, very informative. Enums are so powerful in swift.

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

    this was masterful 👏

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

    Best explanation I have seen if this Stewart. Excellent work!

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

    Great tutorials, it helped me a lot with the project I am working on right now. Struggling a bit to implement paths to Navigation Stack but I guess I will manage. Many Thanks Steward

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

    I already use a similar solution in my app. Nice touch to have the enum conform to view. I use a computed property that returns some view.

  • @Al.2
    @Al.2 Рік тому

    Thanks for the inclusion of some cool xcode shortcuts.

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

    Brilliant use of enums, as usual. And keyboard shortcuts in bonus. (I left the same comment last night, but it seems to have disappeared.)

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

    Simple and elegant as usual. Thank you for this useful tutorial 🌹

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

    This is so cool and well explained, Thank you so much Stewart

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

    This is awesome, Stewart. I had no idea there were so many keyboard shortcuts. 🙂

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

    Thank you for this great video, Stewart!

  • @nitesh-maharaj
    @nitesh-maharaj Рік тому

    This is awesome Stewart. I think SwiftUI finally resolved all of the navigation issues that I previously had. I'd be curious if anyone ran into any use case that doesn't work.

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

    14:18 Thank you. Excellent.

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

    Thanks!

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

    You make learning easy. Awesome video!

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

    Great. And so many other tips along the way.

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

    Great job! very well done!

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

    The { $0 } idiom is just a bit too far for my ability to read and understand. I love that you explained the concepts upto and including that short-hand $0.

    • @StewartLynch
      @StewartLynch  Рік тому +2

      $0 represents the instance of the enum and since it conforms to the View protocol it is a view

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

    Hi Stewart, very nice tutorial, thank you!
    Is there a way to navigate back from one of the topic view to the root ContentView programmatically?

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

      I cover this in my NavigationStack video.

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

      @@StewartLynch Thanks, will have a look

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

    Uau 🤯

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

    How would you handle this, if you have features in different swift packages, and you have to navigate from one feature to another?

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

      Not sure that I understand the question.

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

      @@StewartLynch in a modular appstructure where you have each feature isolated in a spm-package. In that case, you would need a shared router package, but that will end up in a circular dependency. I'm struggling with combining the router pattern and the modular app structure :) Just asking if you have suggestion for this

    • @StewartLynch
      @StewartLynch  9 місяців тому +1

      @nicolaiharbo2201 I see what you are getting at. Unfortunately, I do not have any suggestions for you off the top of my head

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

    How would you make the Green screen the home screen and the current Home Screen a directory view?

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

      I’m sorry, I don’t understand the question. Send me an email (links in the video description) and we can discuss further.

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

      Email sent! I basically want to have the front page with a map. The annotations will act like Enum -cases to open up a 3d model scene, like a 3d hamburger at a local restaurant.

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

    Is this too limited to iOS16? I haven’t had a chance to try it out yet. I know NavigationStack is, but could this work with a NavigationView?

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

      This is dependent on the path binding and that is iOS 16 only

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

    👍🏼👍🏼👍🏼

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

    wonderful

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

    it's a toss up this morn. My two favorite Swift topics...Enums and Navigation or World Cup /w Messi and Mbappe; plus snow. What to do???🥸

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

    Nice Steward. Space after : please for us using SwiftLint it’s painful to have without spaces

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

      I agree. Don’t know how I would have missed that

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

      @@StewartLynch no worries. Thanks for amazing keyboard shortcuts!

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

    Thanks!