diff --git a/VDS/Protocols/SelectorGroupHandlerable.swift b/VDS/Protocols/SelectorGroupHandlerable.swift index d9b06fab..000f43c3 100644 --- a/VDS/Protocols/SelectorGroupHandlerable.swift +++ b/VDS/Protocols/SelectorGroupHandlerable.swift @@ -12,6 +12,7 @@ import UIKit public protocol SelectorGroupHandlerable: ModelHandlerable, Disabling, Surfaceable where ModelType: SelectorGroupModelable { associatedtype ModelHandlerType: ModelHandlerable where ModelType.SelectorModelType == ModelHandlerType.ModelType, ModelHandlerType: UIControl var selectorViews: [ModelHandlerType] { get set } + func createModelHandler(selector: ModelHandlerType.ModelType) -> ModelHandlerType } extension SelectorGroupHandlerable { @@ -70,6 +71,7 @@ extension SelectorGroupHandlerable { ///MARK: Groups that allow single selections public protocol SelectorGroupSelectedHandlerable: SelectorGroupHandlerable { var selectedModel: ModelHandlerType.ModelType? { get set } + func didSelect(selector: ModelHandlerType.ModelType) } extension SelectorGroupSelectedHandlerable {