vds_ios/VDS/Components/Label/LabelModel.swift
Matt Bruce fd4b9a1b28 made initable
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2022-08-04 15:33:09 -05:00

27 lines
703 B
Swift

//
// VDSLabelModel.swift
// VDS
//
// Created by Matt Bruce on 7/28/22.
//
import Foundation
import UIKit
public protocol LabelModel: Labelable, Surfaceable, Disabling {
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(){}
}