removed comments

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-09-08 16:18:59 -05:00
parent 49911145cf
commit 56a72f62a2
2 changed files with 3 additions and 9 deletions

View File

@ -11,8 +11,6 @@ import UIKit
public class RadioBoxGroup: RadioBoxGroupBase<DefaultRadioBoxGroupModel, RadioBox> {
public override func didSelect(_ selectedControl: ModelHandlerType) {
//only changes local model in control,
//this is now disconnected from the parent model
for (index, control) in selectorViews.enumerated() {
//only change the old and new
if control == selectedControl {

View File

@ -11,8 +11,6 @@ import UIKit
public class RadioButtonGroup: RadioButtonGroupBase<DefaultRadioButtonGroupModel, RadioButton> {
public override func didSelect(_ selectedControl: ModelHandlerType) {
//only changes local model in control,
//this is now disconnected from the parent model
for (index, control) in selectorViews.enumerated() {
//only change the old and new
if control == selectedControl {
@ -20,6 +18,9 @@ public class RadioButtonGroup: RadioButtonGroupBase<DefaultRadioButtonGroupModel
$0.selected = true
}
model.selectors[index] = updated
if hasError {
hasError = false
}
} else if control.isSelected {
let updated = model.selectors[index].copyWith {
@ -29,12 +30,7 @@ public class RadioButtonGroup: RadioButtonGroupBase<DefaultRadioButtonGroupModel
}
}
if hasError {
hasError = false
}
sendActions(for: .valueChanged)
}
}