I feel like I\'m missing something very basic, but this example SwiftUI code will not modify the view (despite the Binding updating) when the button is clicked
Tutorials
You need to use @State instead of @Binding.
If the UI should update when its value changes, you designate a variable as a @State variable. It is the source of truth.
You use @Binding instead of @State, when the view doesn't own this data and its not the source of truth.
Here is your variable:
@State var isSelected: Bool