From 6cd6685da42daf8cdcd59700233708750e944314 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 3 Oct 2022 12:21:50 -0500 Subject: [PATCH] refactored hasError to showError Signed-off-by: Matt Bruce --- .../ViewControllers/CheckBoxGroupViewController.swift | 6 +++--- VDSSample/ViewControllers/CheckboxViewController.swift | 6 +++--- .../ViewControllers/RadioBoxGroupViewController.swift | 4 ++-- VDSSample/ViewControllers/RadioButtonViewController.swift | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) 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