vds_ios/VDS/Components/Checkbox/CheckboxGroupModel.swift
Matt Bruce e706045c79 removed id
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2022-08-30 14:32:06 -05:00

28 lines
740 B
Swift

//
// CheckboxGroupModel.swift
// VDS
//
// Created by Matt Bruce on 8/23/22.
//
import Foundation
public protocol CheckboxGroupModel: SelectorGroupModelable, Errorable where SelectorModelType: CheckboxModel {
}
public struct DefaultCheckboxGroupModel: CheckboxGroupModel {
public typealias SelectorModelType = DefaultCheckboxModel
public var inputId: String?
public var value: AnyHashable?
public var surface: Surface = .light
public var disabled: Bool = false
public var selectors: [SelectorModelType]
public var hasError: Bool = false
public var errorText: String?
public init() { selectors = [] }
public init(selectors: [SelectorModelType]){
self.selectors = selectors
}
}