SwiftUI
Intermediate 2 min read
@Observable Macro
Replace ObservableObject with the new @Observable macro
iOS Academy
iOS Engineer
@Observable (iOS 17+) replaces ObservableObject/@Published. Any property access inside body automatically subscribes to changes — no @StateObject or @ObservedObject wrappers needed.
#Observable
#SwiftUI
#iOS17