vds_ios/VDS/Components/Tilet/TiletBadgeModel.swift
Matt Bruce ec9f853b3d made structs codable and remove textAttributes (for now on Tilet)
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2023-01-12 13:38:36 -06:00

24 lines
633 B
Swift

//
// TiletBadgeModel.swift
// VDS
//
// Created by Matt Bruce on 1/6/23.
//
import Foundation
public struct TiletBadgeModel: Codable {
public var text: String = ""
public var fillColor: BadgeFillColor
public var surface: Surface
public var numberOfLines: Int
public var maxWidth: CGFloat?
public init(text: String, fillColor: BadgeFillColor = .red, surface: Surface = .light, numberOfLines: Int = 0, maxWidth: CGFloat? = nil) {
self.text = text
self.fillColor = fillColor
self.surface = surface
self.numberOfLines = numberOfLines
self.maxWidth = maxWidth
}
}