SwiftUI - @Binding Property Wrapper Explained - Passing Data

Поділитися
Вставка
  • Опубліковано 18 лис 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.

  • @TidalWaveDan
    @TidalWaveDan Рік тому +3

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

  • @prettygirl6146
    @prettygirl6146 2 роки тому +5

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

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

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

    Nice tutorial, getting lots of tips from the video

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

    Thanks Sean!

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

    Love your channel Sean. Subscribed!!!!

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

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

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

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

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

  • @ahmadkhattab5700
    @ahmadkhattab5700 7 місяців тому

    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

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

    Nice little tutorial! 👍🏻

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

    really like this video.
    thank you

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

      Glad you enjoyed it, Nheng.

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

    Good stuff! Thanks, Sean!

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

    Amazing content! Thanks a lot !

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

    What if the variable in parent is optional ?

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

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

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

    Thanks!

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

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

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

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

    thanks

  • @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 😀 - ua-cam.com/video/48JYBb5yJ0s/v-deo.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.

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

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