Adding Observation Properties Instruction
Properties of an Observable Class
The properties of an @Observable class are published by default, so you don’t mark observable properties as @Published. Instead, there are two ways you can “hide” a property that you don’t want views to observe.
- Declare it
private. - Mark it as
@ObservationIgnored.
Follow along with the demo video to see this in action.