SwiftUI - @Binding Property Wrapper Explained - Passing Data

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

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

  • @seanallen
    @seanallen  3 года назад +6

    If you enjoy my teaching/presentation style, I've started creating my own iOS development courses at seanallen.teachable.com. You can watch the first ~10% for free to get a feel for them.

  • @prettygirl6146
    @prettygirl6146 2 года назад +5

    You literally saved me from stop coding forever. Love it.

  • @TidalWaveDan
    @TidalWaveDan Год назад +3

    I really appreciate the disclaimer and pointing me in the right direction for passing in at deeper levels. Thanks!

  • @traftonreynolds3528
    @traftonreynolds3528 2 года назад +2

    I'm making an app for my internship this summer (Never used swift before last month) and this is exactly what I was looking for. You're a lifesaver, thank you!!!

  • @KimbrellBrad
    @KimbrellBrad 3 года назад +12

    As always, very clear explanation. I really appreciate your content and style! Thanks for what you do for the community!

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

      Thanks for the kind words, Brad 😀

  • @terrykuo501
    @terrykuo501 3 года назад +3

    Great Video👍🏽🤩, SFsymbols actually can use the .font modifier to change the size tho. Apple have seen that as a Text even though it’s called inside Image().

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

      Thanks for sharing that knowledge! didn't know that and I'm gonna try that in my playground project later. :)

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

    Thanks Sean!

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

    Love your channel Sean. Subscribed!!!!

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

    Thanks for sharing this awesome video!, But i have a question is it possible to pass @Published property in ViewModel to custom SwiftUI View expecting @Binding property

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

    Nice tutorial, getting lots of tips from the video

  • @edyarro4291
    @edyarro4291 8 месяцев назад +1

    Great content, i appretiate the disclaimer. Not because you can do it that you should #facts

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

      I appreciate that

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

    Thanks for this easy to understand video :)

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

      Happy to help, Mayank!

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

      @@seanallen Thank you so much... Can you please share a video showing the exact structure of the project in MVC and MVVM and where should we keep our API calling code in UIKit and also the structure of SwiftUI project... Showing some demo code with best practices in folder structure and where to write specific code like networking, logical code etc. I never got exposed properly with best practices as I am the only iOS developer in my company and learnt iOS development myself but I am always confused whether i am properly following the best practices or not.

  • @prajaktanisal2247
    @prajaktanisal2247 6 месяцев назад

    What if the variable in parent is optional ?

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

    Nice little tutorial! 👍🏻

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

    Thank you very much. Your videos are really great and useful.
    Peter

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

    Good stuff! Thanks, Sean!

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

    really like this video.
    thank you

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

      Glad you enjoyed it, Nheng.

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

    Like .constant(false) in the preview section, what do you write down when your binding is a string not a bool?
    love your videos btw! very easy to understand!

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

    How do you do this exact same thing but using @AppStorage? I figure I could replace the @State with a properly formatted @AppStorage but that didn’t work. I only updates the first string with the first thing typed in the modal (I am trying to pass a string). Of course when I close it or do something else on the first screen it updates, but not when I slide the modal back down. Thanks.

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

    Great video. What's the proper way to pass a string that is a part of an array?

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

    One thing to note is that binding properties don’t have to be named the same for them to be binded

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

    Amazing content! Thanks a lot !

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

    Really cool, but what is the meaning of @State and the usage of dollar before variables call?

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

      It's a lot to type out, but I did a video just like this one for the @State property wrapper that explains it here 😀 - ruclips.net/video/48JYBb5yJ0s/видео.html

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

      @@seanallen Thanks for your answer. Sorry for having missed that video. Nice work, as always.

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

      No problem!

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

      The dollar symbol is 2 way data binding in several frameworks; angular and Combine for sure.

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

    Thanks!

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

      Happy to help, Willa.

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

    thanks

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

    dude you are cool!

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

    The contrast between the bald head and the lush beard made me feel so interesting that I was a little distracted. Dude, don't get me wrong, I mean very sexy