Advanced
Swift
Q69 / 100
What is the Swift Observation framework (@Observable)?
Correct! Well done.
Incorrect.
The correct answer is B) A macro-based observation system in Swift 5.9 that tracks property accesses and triggers UI updates without boilerplate @Published declarations
B
Correct Answer
A macro-based observation system in Swift 5.9 that tracks property accesses and triggers UI updates without boilerplate @Published declarations
Explanation
@Observable (Swift 5.9 / iOS 17) uses macros to instrument property access. SwiftUI views automatically track which properties they access and re-render on changes.
Progress
69/100