vds_ios/VDS/Protocols/SelectorGroupModelable.swift
Matt Bruce 324d00b53b updated protocols to deal with Single Selection Groups
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2022-08-24 08:20:29 -05:00

20 lines
557 B
Swift

//
// SelectorGroupModel.swift
// VDS
//
// Created by Matt Bruce on 8/11/22.
//
import Foundation
///MARK: Groups that allow anything selected
public protocol SelectorGroupModelable: Modelable, FormFieldable, Errorable {
associatedtype SelectorModelType: Modelable where SelectorModelType: FormFieldable & Selectable
var selectors: [SelectorModelType] { get set }
}
///MARK: Groups that allow single selections
public protocol SelectorGroupSelectedModelable: SelectorGroupModelable {
var selectedModel: SelectorModelType? { get set }
}