Swift: DidSet Blocks & Their Usefulness (2022, Xcode 13) - iOS

Поделиться
HTML-код
  • Опубликовано: 29 сен 2021
  • In this video we will take a thorough look at didSet blocks in Swift. Through practical examples we'll explore real world use cases that best exemplify the power of this simple language feature. DidSet blocks allow for code to be executed once a setter of a property is invoked. We'll work in Xcode 13 and Swift 5.
    💻 Source Code: / iosacademy
    🎥 Subscribe for more: ruclips.net/user/iOSAcademy?su...
    😎 Like my teaching style? Check out some of my most popular courses! courses.iosacademy.io
    ** Popular Series
    Building Instagram: courses.iosacademy.io/p/build...
    Building TikTok: / @iosacademy
    SwiftUI for Beginners: ios-academy.teachable.com/p/s...
    ** Get Skillshare free for 2 Months and learn iOS
    www.skillshare.com/r/user/afraz
    ** Manage all your investments from app earnings on Betterment!
    bit.ly/3eBwlI9
    ** Grow your own RUclips tech channel with TubeBuddy:
    www.tubebuddy.com/iosacademy
    #swift

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

  • @vusalnuriyev5773
    @vusalnuriyev5773 2 года назад +7

    just wanna remind u that u are the best =)

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

      Thanks!

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

      @@iOSAcademy my momma suqqed a coqq. My poppa suqqed a qoqq. Tf am I supposed to do???
      SUQQ A MOFUQQQING KOQQQ? Suqq A MOFUQQING KOKKKK???

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

    Awesome video man! Fantastic content as always!

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

    So far, you are my favorite RUclipsr 😎

  • @lahiruchathuranga9493
    @lahiruchathuranga9493 2 года назад +9

    Can you do more about the best practices in iOS coding🙂

  • @Aditya-Pathak
    @Aditya-Pathak 2 года назад

    Super cool 👍🏼😀

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

    These videos are great 🙂

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

    Thank you A lot!!!!!!!!!

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

    good tutorial, but why are you in such a hurry? ) we can set x1.5 if needed

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

    Thank you!

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

    Hi there, IosAcademy, I enyoy very much your tutorials of swift concept,,, and for this tutorial, My observation is :
    updating the tableview data in real time will effectively preventing user from interacting with the tableview, so what is wonderful thing about this observer ( for tableview) ?
    I think we better off using this observer applying to update ( or minic an amination ) is probably serve the purpose better ??

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

    man u r cool!) thx)

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

    Much love wilah

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

    nice introduction to didSet, however that's the kind of confusing thing that would require at least 4-5 examples in different contexts for me to really grasp when to use it ; well if at some point you feel like recording a part II of didSet with more examples I won't blame you hahaha

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

    Isn't the observer class you wrote actually one of the classes that form the basis of rx swift?🤓

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

    Can you tell me why don't you use storyboard to layout?

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

    Thanks for the video. I've got a question. What if we put didSet{ tableView.reloadData() } onto fruits array. Would not it refresh the table when we append staff onto fruits array?

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

      Yes. The example i showed is a bit more flexible

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

      @@iOSAcademy Ah I see. Thank you for the reply and a great tutorial.

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

    Why UIKit and not SwiftUI? Seems like it wouldn’t matter.

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

      Only difference is many fewer lines of code IMO!

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

    Is that the noise of ur mac's fan?😂😂

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

    Inflecting the end of your sentences is very wearing.

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

    Nice video. Any videos on how to use instruments? 🥸😁