So far we've seen how to store values in properties and calculate them dynamically with computed properties. But what if you want to react every time a property changes — automatically, without having to remember to call a function yourself? That's exactly what property observers are for. 🍥

Swift gives us two flavors:



didSet — runs after the...