From f97b08460a91008fe86a709ba1ca1308e9468cd1 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 11 Aug 2022 09:48:32 -0500 Subject: [PATCH] added radio button shouldUpdate Signed-off-by: Matt Bruce --- VDS/Components/RadioButton/RadioButton.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/VDS/Components/RadioButton/RadioButton.swift b/VDS/Components/RadioButton/RadioButton.swift index 7f2cccce..8f1d5a56 100644 --- a/VDS/Components/RadioButton/RadioButton.swift +++ b/VDS/Components/RadioButton/RadioButton.swift @@ -165,5 +165,13 @@ open class RadioButtonBase: SelectorBase } } } - + + open override func shouldUpdateView(viewModel: ModelType) -> Bool { + return viewModel.selected != model.selected + || viewModel.labelText != model.labelText + || viewModel.childText != model.childText + || viewModel.showError != model.showError + || viewModel.surface != model.surface + || viewModel.disabled != model.disabled + } }