vds_ios/VDS/Components/Table/TableCellLabelModel.swift
2024-05-02 18:47:30 +05:30

40 lines
999 B
Swift

//
// TableCellLabelModel.swift
// VDS
//
// Created by Nadigadda, Sumanth on 02/05/24.
//
import Foundation
extension Table {
public struct TableCellLabelModel: TableCellModel, Surfaceable {
public var text: String
public var accessibilityString: String?
public var surface: Surface
public init(text: String, accessibilityString: String? = "", surface: Surface = .light) {
self.text = text
self.accessibilityString = accessibilityString
self.surface = surface
}
}
public struct TableCellImageModel: TableCellModel, Surfaceable {
public var name: Icon.Name
public var size: Icon.Size
public var surface: Surface
public init(name: Icon.Name, size: Icon.Size, surface: Surface = .light) {
self.name = name
self.size = size
self.surface = surface
}
}
}