From 036d9462a81b7c89221d08b400bb169e15e4aaf3 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 11 Aug 2022 10:56:43 -0500 Subject: [PATCH] Signed-off-by: Matt Bruce --- .../SelectorBase/SelectorGroup.swift | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/VDS/Components/SelectorBase/SelectorGroup.swift b/VDS/Components/SelectorBase/SelectorGroup.swift index 3de39055..b6d18745 100644 --- a/VDS/Components/SelectorBase/SelectorGroup.swift +++ b/VDS/Components/SelectorBase/SelectorGroup.swift @@ -7,7 +7,7 @@ import Foundation import UIKit - +import Combine public protocol SelectorGroupModel: Modelable, FormFieldable { associatedtype SelectorType: SelectorModel @@ -32,19 +32,19 @@ open class SelectorGroup Bool { return true } - + open override func updateView(viewModel: ModelType) { print("Selector Group update:") func findSelectorView(inputId: String) -> SelectorHandlerType? { return selectorViews.first(where: { existingSelectorView in - return existingSelectorView.model.inputId == inputId + return existingSelectorView.model.inputId == inputId }) } @@ -109,8 +109,8 @@ open class SelectorGroup SelectorType? { if let index = model.selectors.firstIndex(where: { element in return element.id == viewModel.id @@ -142,4 +142,5 @@ open class SelectorGroup