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

Поделиться
HTML-код
  • Опубликовано: 7 окт 2024

Комментарии • 55

  • @aleksandrkravtsov8727
    @aleksandrkravtsov8727 3 месяца назад

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

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

  • @YahiaRagae
    @YahiaRagae 2 года назад +3

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

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

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

  • @KalinRangelov
    @KalinRangelov 3 года назад +2

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

    • @valentine1925
      @valentine1925 2 года назад +1

      😂same here I'm like "no way"

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

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

  • @paulikhane
    @paulikhane 3 года назад +1

    You just simply AMAZING!!! PERIOD

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

  • @yizhiwang4928
    @yizhiwang4928 26 дней назад

    Thanks!

  • @nesalexy
    @nesalexy Год назад

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

  • @majisjon
    @majisjon 2 года назад

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

  • @katesychenko
    @katesychenko 2 года назад

    Great video! Thank you so much!

  • @sencercebeci
    @sencercebeci 3 года назад

    your voice motivates me

  • @gabrielsoriasouza7537
    @gabrielsoriasouza7537 2 года назад

    What a great content! Thank you!

  • @CarlsCorrea
    @CarlsCorrea 3 года назад

    Very nice!! thanks for the video

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

  • @marcoyu6682
    @marcoyu6682 3 года назад

    thank you so much for these informative tutorials!

  • @ALL_ONE_SUN
    @ALL_ONE_SUN 3 года назад

    Thanks Pat.

  • @jerripot
    @jerripot 3 года назад

    Awesome stuff thank you

  • @jong6958
    @jong6958 3 года назад

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

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

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

  • @Lu1stron
    @Lu1stron 3 года назад

    Love u! ♥️

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

  • @lincolndickerson1293
    @lincolndickerson1293 3 года назад

    The time index is at about 40:55. Thanks

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

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

  • @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, RUclips 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?

  • @rockabilly8533
    @rockabilly8533 3 года назад +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 3 года назад

      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.

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

  • @w0mblemania
    @w0mblemania 2 года назад

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

  • @cslanzi76
    @cslanzi76 3 года назад

    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

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

  • @szabolcst6847
    @szabolcst6847 3 года назад

    Excellent as always, thanks a lot.

  • @AndrewDChristie
    @AndrewDChristie 8 месяцев назад

    Thanks!