added methods that can be overwritten

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-08-24 17:25:23 -05:00
parent 06f25259f7
commit 8c92503299

View File

@ -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 {