26 lines
732 B
Swift
26 lines
732 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 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
|
|
}
|
|
}
|