Intermediate
Swift
Q71 / 100
What is SwiftUI's @Binding?
Correct! Well done.
Incorrect.
The correct answer is B) A two-way connection to state owned by a parent, allowing a child view to read and modify the parent's state
B
Correct Answer
A two-way connection to state owned by a parent, allowing a child view to read and modify the parent's state
Explanation
@Binding var isOn: Bool in a child view connects to $isOn from the parent's @State. Changes in the child propagate back to the parent.
Progress
71/100