In this Swift tutorial we’ll look at how to use property observers and willSet / didSet inside of a Swift class, and how to make the observer only respond when there is a change, not EVERY change.
Hit the like button, comment, subscribe, and hit the dinner bell to be notified of my next video!
00:00 Intro
00:30 Create class & property observers
01:36 Initializer & helper method
02:15 Testing observers
02:55 Set observers to only detect true change
04:03 End
Subscribe for more content, as I will be creating more tutorial and how-to videos for coding in Swift, as well as longer tutorials on building macOS apps.
If you'd like to support my work to help me improve video quality and bring more content, please consider donating to my PayPal:
https://www.paypal.com/paypalme/Swift...
Thank you for watching!
Huge thank you to the channels below for helping me get started!
Uncreated Light Press
/ @uncreatedlightpress
and
Mr. Macintosh
/ @mr.macintosh
and
The Apple Ninja
/ jessetheappleninja