Skip to content

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.

Where the book teaches it

Related terms

inout parameter