Say in a SwiftUI board game, the board view is composed of several cell views and each cell view encapsulates whether it was pressed. What would be a good approach to making the parent board view know about that @State?
How do you make child views' state accessible by the parent view?
Add a Comment