vds_ios/VDS/Components/Label/LabelModel.swift
Matt Bruce f768c6eab6 refactored toggle colors and models
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2022-08-04 16:05:27 -05:00

27 lines
713 B
Swift

//
// VDSLabelModel.swift
// VDS
//
// Created by Matt Bruce on 7/28/22.
//
import Foundation
import UIKit
public protocol LabelModel: Labelable, Surfaceable, Disabling, Initable {
var text: String? { get set }
var attributes: [LabelAttributeModel]? { get set }
}
open class DefaultLabelModel: LabelModel, Initable {
public var text: String?
public var attributes: [LabelAttributeModel]?
public var fontCategory: FontCategory = .body
public var fontSize: FontSize = .small
public var fontWeight: FontWeight = .regular
public var textPosition: TextPosition = .left
public var surface: Surface = .light
public var disabled: Bool = false
required public init(){}
}