added methods that can be overwritten
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
06f25259f7
commit
8c92503299
@ -12,6 +12,7 @@ import UIKit
|
|||||||
public protocol SelectorGroupHandlerable: ModelHandlerable, Disabling, Surfaceable where ModelType: SelectorGroupModelable {
|
public protocol SelectorGroupHandlerable: ModelHandlerable, Disabling, Surfaceable where ModelType: SelectorGroupModelable {
|
||||||
associatedtype ModelHandlerType: ModelHandlerable where ModelType.SelectorModelType == ModelHandlerType.ModelType, ModelHandlerType: UIControl
|
associatedtype ModelHandlerType: ModelHandlerable where ModelType.SelectorModelType == ModelHandlerType.ModelType, ModelHandlerType: UIControl
|
||||||
var selectorViews: [ModelHandlerType] { get set }
|
var selectorViews: [ModelHandlerType] { get set }
|
||||||
|
func createModelHandler(selector: ModelHandlerType.ModelType) -> ModelHandlerType
|
||||||
}
|
}
|
||||||
|
|
||||||
extension SelectorGroupHandlerable {
|
extension SelectorGroupHandlerable {
|
||||||
@ -70,6 +71,7 @@ extension SelectorGroupHandlerable {
|
|||||||
///MARK: Groups that allow single selections
|
///MARK: Groups that allow single selections
|
||||||
public protocol SelectorGroupSelectedHandlerable: SelectorGroupHandlerable {
|
public protocol SelectorGroupSelectedHandlerable: SelectorGroupHandlerable {
|
||||||
var selectedModel: ModelHandlerType.ModelType? { get set }
|
var selectedModel: ModelHandlerType.ModelType? { get set }
|
||||||
|
func didSelect(selector: ModelHandlerType.ModelType)
|
||||||
}
|
}
|
||||||
|
|
||||||
extension SelectorGroupSelectedHandlerable {
|
extension SelectorGroupSelectedHandlerable {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user