SwiftUI tutorial: How to navigate programmatically like a pro with NavigationView - iPhone and iPad

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

КОМЕНТАРІ • 54

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

    Special thanks for showing how to handle navigation on iPhone and iPad

  • @YahiaRagae
    @YahiaRagae 2 роки тому +3

    That's more than excellent!! I really appreciate the time and the effort 🙌

  • @ColeDano
    @ColeDano 3 роки тому +3

    This was very helpful for me, thanks Karin. I'll have to rewatch it again and start playing with these ideas. It's surprising how tricky navigation in SwiftUI can be.

    • @SwiftyPlace
      @SwiftyPlace  3 роки тому +5

      I am not sure if I would say navigation in SwiftUI is tricky. If I compare it to UIKit it is easier to set-up. What makes the examples in this tutorial more complex, is that I am trying to use it in different ways.
      It really depends on how the developer defines the state and architecture of the app.
      The other advantage that I forgot to mention is that a more flexible design allows to iterate and change the app flow a lot faster. This is great for prototyping and testing new features.

  • @marced2751
    @marced2751 3 роки тому +3

    Thanks Karin for investing your time and creating great content - you're a blessing. I've taken both of your Udemy courses as well. You go into depth about how things work which helps my understanding. So I guess this is just a note of encouragement.

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

    As UIKit developer I'm getting brain damage watching state-based navigation :D
    Awesome video.

  • @multitudes389
    @multitudes389 3 роки тому +1

    Well said sometimes navigation is a puzzle!! Thank you so much for this video. It really saved my life because I was getting quite confused between Navigation on iPad and iPhone. Also I finally understood how navigationLinks are properly used!

  • @alobaili
    @alobaili 3 роки тому

    Wonderful video, thank you! I came here mainly for the iPad section at the end, but I found the whole video very helpful.

  • @paulikhane
    @paulikhane 3 роки тому +1

    You just simply AMAZING!!! PERIOD

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

    This changes my mind. I think Navigation in SwiftUI it is a completely a mess. But this solution makes sense. I don't know if I only use a one instance of State Manager or create a more generic State Manager. Or I'm starting think in the imperative way 😱.
    Create content congratulations and thank you.

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

      I am using only one StateManager. I prefer a simple approach.
      There is also the composable architecture from PointFree github.com/pointfreeco/swift-composable-architecture

  • @sencercebeci
    @sencercebeci 3 роки тому

    your voice motivates me

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

    Great video Karin! I just found you, and this has helped a lot

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

    great stuff, as usual 💪 just a small note - presentationMode environment value is deprecated, now you can grab and use dismiss action instead

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

    Great video! Thank you so much!

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

    You must have 700 000 followers, thanks for the video!

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

    What a great content! Thank you!

  • @szabolcst6847
    @szabolcst6847 3 роки тому

    Excellent as always, thanks a lot.

  • @CarlsCorrea
    @CarlsCorrea 3 роки тому

    Very nice!! thanks for the video

  • @marcoyu6682
    @marcoyu6682 3 роки тому

    thank you so much for these informative tutorials!

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

    Brilliant and thank you - but you shouldn't have had to do the second of half of the video showing how to do work arounds for Apple's work in progress. Sincerely grateful.

  • @ALL_ONE_SUN
    @ALL_ONE_SUN 3 роки тому

    Thanks Pat.

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

    Awesome stuff thank you

  • @rongnev3078
    @rongnev3078 3 роки тому

    Thanks you so much!

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

    Nice Explanation: But can you please do a video on how to do an HTTP post request using SwiftUI with Combine?

  • @jong6958
    @jong6958 3 роки тому

    This is great! Thank you so much. Can you also do one for custom navigation with custom transitions?

  • @joninsky
    @joninsky 3 роки тому

    Great video! I have yet to find a way to customize the navigation bar to my liking. Would be interested to know how you would approach it?

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

    Karin great content as always!, I've learned a lot from you.
    One question, how do you navigate on views from a menu located in the upper right position in the toolbar?

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

    Hi Karin. First of all it's great video, I really like a lot the idea with State Manager. although i have one problem. I have run your code and after calling emojiView from firstDetailView the emojiView loades two times.
    Kind of: firstView->dietailFirstView->emojiView and the app automaticaly go back to detailFirstView->emojiView. I'm confused now, can't find the reason.

  • @Lu1stron
    @Lu1stron 3 роки тому

    Love u! ♥️

  • @MCAmri-ix7fk
    @MCAmri-ix7fk 2 роки тому

    great video..
    i have questions:
    how do you combine this wth MVVM, pass data to next view?
    and also is it possible to not create new view in the original view?

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

    I am running this on ios15. Everything works fine until I use the StateManager. Then when I select a detailItem, the EmojiItem destination transitions twice. Any idea how to fix this?

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

      I have the same problem when pushing the aNavigationLink. Xcode is asking me to file a bug.

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

      I’m also experiencing this bug

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

      The solution is to add .isDetailLink(false) to FirsTabView's NavigationLink

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

      @@jacekdogiel8747 Great spot Jacek. Thank you.

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

    @22:52 Paradigm shift for those of us with UIKit brains.

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

    The time index is at about 40:55. Thanks

  • @juliocuesta
    @juliocuesta 3 роки тому

    Again the automatic subtitles are generated in German in several of the new videos. If you can force them into English, it is appreciated. Greetings and thanks for the work you do.

    • @SwiftyPlace
      @SwiftyPlace  3 роки тому

      Sorry, UA-cam drives me crazy. I have my default settings to English, which should autogenerate captions in English. But it seems to have a bug. Next time I have to manually check the language.
      Unfortunately, it does not autogenerate captions after the first upload. So i cannot easily add English for the existing videos. I will try to pay more attention to this.

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

    Unfortunally this does not work anymore 20:43

  • @somsankarnaskar
    @somsankarnaskar 3 роки тому

    How to update environment object from view model?

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

    Setting the selectedEmoji = nil @ 21:46 doesn't work for me, it doesn't navigate back. I'm sure I wrote the same exact code. Is that broken on iOS 15?

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

      This does not work for me using the SwiftUI app preview but it does work when using the device simulator

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

    Thanks!

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

    This is extremely timely, I literaly started converted my projects over to use what I called a ViewManager. Thank you. One question, when you bounce back to the root view directly is there anyway to prevent the middle view from showing. Be right back with a time index

    • @SwiftyPlace
      @SwiftyPlace  3 роки тому

      I have tried to find a way to go back to the rootview without seeing all the views in between. I did not succeed. This is one of the bugs in SwiftUI. I also forgot to mention that this can behaviour differently if I run it multiple times or on different iOS versions. Even big changes during iOS 14 updates. I am really hoping they are going to fix this soon and add more customisation.

  • @rillieux1792
    @rillieux1792 3 роки тому

    This is great. Thank you so much. Also - what is your cat's name? :D

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

    I realy cant stop myself to not curse when i see SwiftUI's absolutely terrible navigation system. How can even it is possible to Flutter can clear stacks while navigating and SwiftUI cant as native framework.