Property observers in Swift — Swift by Sundell

Being able to observe changes in various values is essential for many different kinds of programming styles and techniques. While there are a number of abstractions that we can create to be able to observe and communicate such value changes in different ways — Swift comes built-in with a simple, yet powerful way to attach observations to any kind of non-lazy, stored property — appropriately named property observers.


Want to receive more content like this in your inbox?