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
just wanna remind u that u are the best =)
Thanks!
@@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???
Awesome video man! Fantastic content as always!
So far, you are my favorite RUclipsr 😎
Can you do more about the best practices in iOS coding🙂
Sure
Super cool 👍🏼😀
These videos are great 🙂
Thanks
Thank you A lot!!!!!!!!!
Youre welcome
good tutorial, but why are you in such a hurry? ) we can set x1.5 if needed
Thank you!
You bet!
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 ??
man u r cool!) thx)
Haha thanks
Much love wilah
Thanks
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
Isn't the observer class you wrote actually one of the classes that form the basis of rx swift?🤓
Can you tell me why don't you use storyboard to layout?
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?
Yes. The example i showed is a bit more flexible
@@iOSAcademy Ah I see. Thank you for the reply and a great tutorial.
Why UIKit and not SwiftUI? Seems like it wouldn’t matter.
Only difference is many fewer lines of code IMO!
Is that the noise of ur mac's fan?😂😂
Yes sir lol
Inflecting the end of your sentences is very wearing.
Thanks for the feedback
Nice video. Any videos on how to use instruments? 🥸😁