27 lines
724 B
Swift
27 lines
724 B
Swift
//
|
|
// TiletBadgeModel.swift
|
|
// VDS
|
|
//
|
|
// Created by Matt Bruce on 1/6/23.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension Tilelet {
|
|
public struct BadgeModel {
|
|
public var text: String = ""
|
|
public var fillColor: Badge.FillColor = .red
|
|
public var surface: Surface = .light
|
|
public var numberOfLines: Int
|
|
public var maxWidth: CGFloat?
|
|
|
|
public init(text: String, fillColor: Badge.FillColor = .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
|
|
}
|
|
}
|
|
}
|