Skip to content

Glossary: SwiftUI

@Observable

Also written: Observable, Observation

A macro that makes a class report changes, so any view that reads one of its properties redraws when that property changes. OrderModel uses it to share the order between screens.

Where the book teaches it

Related terms

macro@MainActor@Bindableenvironment