Swiftui, Mobile App Development, Programming, Learning To Code, iOS App Development.
view. However, the sub view needs a reference to the color object its using so the button can update the background color. In our sub view we declare the variable that we need to work with using the @ Binding wrapper. When passing the variable to the initializer of the sub view using the $ to bind