Intermediate
Swift
Q58 / 100
What does the @Published property wrapper do (Combine)?
Correct! Well done.
Incorrect.
The correct answer is B) Emits a publisher event whenever the property value changes, useful in ObservableObject classes
B
Correct Answer
Emits a publisher event whenever the property value changes, useful in ObservableObject classes
Explanation
@Published var name = "" in an ObservableObject class sends a Combine publisher event on each change. SwiftUI subscribes and re-renders views.
Progress
58/100