I generate a dynamic checkbox list
struct ClaimStatusSearchView: View {
@ObservedObject var myObject = myObject ()
var body: some View {
VStack(alignment:.leading, spacing:20) {
Text("My Check Box List")
.font(.system(size: 16))
.bold()
.foregroundColor(.black)
ForEach(myObject.checkBoxList, id:\.id) { item in
CheckboxField(
id: item.checkboxDesc ,
label: item.checkboxDesc ,
callback: self.checkboxSelected
)
}
}.padding(20)
}
But when I click on the checkbox, the checkmark is not displayed.
Aucun commentaire:
Enregistrer un commentaire