vds_ios/VDS/Components/RadioBox/RadioBoxGroupModel.swift
Matt Bruce fa3d139742 refactored hasError to showError
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2022-10-03 12:21:27 -05:00

27 lines
760 B
Swift

//
// RadioBoxGroupModel.swift
// VDS
//
// Created by Matt Bruce on 8/23/22.
//
import Foundation
public protocol RadioBoxGroupModel: SelectorGroupSelectedModelable where SelectorModelType: RadioBoxModel { }
public struct DefaultRadioBoxGroupModel: RadioBoxGroupModel {
public typealias SelectorModelType = DefaultRadioBoxModel
public var id = UUID()
public var inputId: String?
public var value: AnyHashable?
public var surface: Surface = .light
public var disabled: Bool = false
public var selectors: [SelectorModelType]
public var showError: Bool = false
public var errorText: String?
public init() { selectors = [] }
public init(selectors: [SelectorModelType]){
self.selectors = selectors
}
}