Skip to content

Glossary: Swift Beyond the Basics

Observation

Also written: withObservationTracking, onChange

The framework behind `@Observable`. `withObservationTracking` remembers which properties its first closure read, then calls `onChange` once just before one of them changes.

Where the book teaches it

Related terms

@Observable@ObservationIgnored