diff --git a/VDSSample/ViewControllers/CheckBoxGroupViewController.swift b/VDSSample/ViewControllers/CheckBoxGroupViewController.swift index 2419475..a516152 100644 --- a/VDSSample/ViewControllers/CheckBoxGroupViewController.swift +++ b/VDSSample/ViewControllers/CheckBoxGroupViewController.swift @@ -40,7 +40,7 @@ class CheckboxGroupViewController: ModelScrollViewController { showErrorSwitch .publisher(for: .valueChanged) .sink { [weak self] sender in - self?.checkbox.hasError = sender.isOn + self?.checkbox.showError = sender.isOn }.store(in: &subscribers) disabledSwitch @@ -99,14 +99,14 @@ class CheckboxViewController: ModelScrollViewController { disabledSwitch.isOn = model.selected labelTextField.text = model.labelText childTextField.text = model.childText - showErrorSwitch.isOn = model.hasError + showErrorSwitch.isOn = model.showError errorTextField.text = model.errorText } override func updateView(viewModel: DefaultCheckboxModel) { print("\(Self.self) updateView(viewModel)") - showErrorSwitch.isOn = viewModel.hasError + showErrorSwitch.isOn = viewModel.showError disabledSwitch.isOn = viewModel.disabled checkbox.set(with: viewModel) } diff --git a/VDSSample/ViewControllers/RadioBoxGroupViewController.swift b/VDSSample/ViewControllers/RadioBoxGroupViewController.swift index dce7b7a..813db61 100644 --- a/VDSSample/ViewControllers/RadioBoxGroupViewController.swift +++ b/VDSSample/ViewControllers/RadioBoxGroupViewController.swift @@ -94,7 +94,7 @@ class RadioBoxGroupViewController: ModelScrollViewController