25 lines
744 B
Swift
25 lines
744 B
Swift
//
|
|
// RadioSwatchGroupModel.swift
|
|
// VDS
|
|
//
|
|
// Created by Matt Bruce on 8/25/22.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public protocol RadioSwatchGroupModel: SelectorGroupSelectedModelable, Equatable where SelectorModelType: RadioSwatchModel { }
|
|
|
|
public struct DefaultRadioSwatchGroupModel: RadioSwatchGroupModel {
|
|
public typealias SelectorModelType = DefaultRadioSwatchModel
|
|
public var inputId: String?
|
|
public var value: AnyHashable?
|
|
public var surface: Surface = .light
|
|
public var disabled: Bool = false
|
|
public var selectors: [SelectorModelType]
|
|
public var selectedModel: DefaultRadioSwatchModel?
|
|
public init() { selectors = [] }
|
|
public init(selectors: [SelectorModelType]){
|
|
self.selectors = selectors
|
|
}
|
|
}
|