Glossary: Swift Beyond the Basics
property observer
Also written: property observers, didSet, oldValue
Code that runs when a stored property changes. `didSet` runs right after the change, and inside it `oldValue` is the value before.
Glossary: Swift Beyond the Basics
Also written: property observers, didSet, oldValue
Code that runs when a stored property changes. `didSet` runs right after the change, and inside it `oldValue` is the value before.