Enum Navigation in iOS 16

Поділитися
Вставка
  • Опубліковано 17 січ 2025

КОМЕНТАРІ • 68

  • @larryburris6761
    @larryburris6761 2 роки тому +12

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

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

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

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

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

  • @rebeloper
    @rebeloper 2 роки тому +2

    🤯 conforming to the View protocol is gold 👏

    • @StewartLynch
      @StewartLynch  2 роки тому +1

      Thanks. I normally learn new things from you.

  • @Desertbynight
    @Desertbynight 2 роки тому

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

  • @patgoo2
    @patgoo2 2 роки тому +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:).

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

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

  • @erdogancete
    @erdogancete 2 роки тому +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

  • @gustavomonge1785
    @gustavomonge1785 2 роки тому

    14:18 Thank you. Excellent.

  • @bugsyace
    @bugsyace 2 роки тому

    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!

  • @escoffierdesign179
    @escoffierdesign179 2 роки тому

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

  • @Mahadev-x7u
    @Mahadev-x7u 2 роки тому +1

    Thank you Stewart 🎉✨💫

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

    Thanks!

  • @lincolndickerson1293
    @lincolndickerson1293 2 роки тому

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

  • @marktaylor8864
    @marktaylor8864 2 роки тому

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

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

    Thank you for this great video, Stewart!

  • @pgong415
    @pgong415 2 роки тому

    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!

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

    Very helpful. Thanks Stewart!!

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

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

  • @andresraigoza2082
    @andresraigoza2082 2 роки тому

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

  • @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

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

    Beautiful! Thanks for sharing these great tips

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

    Thanks for the inclusion of some cool xcode shortcuts.

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

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

  • @husamburhandev
    @husamburhandev 2 роки тому

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

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

    this was masterful 👏

  • @cmtogether9987
    @cmtogether9987 2 роки тому

    You make learning easy. Awesome video!

  • @thomasfahlke4253
    @thomasfahlke4253 2 роки тому

    Great. And so many other tips along the way.

  • @xinth23
    @xinth23 2 роки тому

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

  • @gakkieNL
    @gakkieNL 2 роки тому

    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.

  • @larschristiansen3136
    @larschristiansen3136 2 роки тому

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

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

    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.

  • @thomascole8216
    @thomascole8216 2 роки тому

    Great job! very well done!

  • @nitesh-maharaj
    @nitesh-maharaj 2 роки тому

    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.

  • @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

  • @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.

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

    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  Рік тому

      Not sure that I understand the question.

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

      @@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  Рік тому +1

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

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

    Uau 🤯

  • @jwkranenburg
    @jwkranenburg 2 роки тому

    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  2 роки тому +1

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

  • @mhfs61
    @mhfs61 2 роки тому

    👍🏼👍🏼👍🏼

  • @DavidKoontz
    @DavidKoontz 2 роки тому

    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 роки тому +2

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

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

    Is this still recommended?

  • @abdulwahabkhan4316
    @abdulwahabkhan4316 2 роки тому

    wonderful

  • @kenturnbull9679
    @kenturnbull9679 2 роки тому

    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 2 роки тому

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

    • @StewartLynch
      @StewartLynch  2 роки тому +1

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

    • @lukassbeataddicts
      @lukassbeataddicts 2 роки тому

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

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

    Thanks!