27 lines
697 B
Swift
27 lines
697 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 }
|
|
}
|
|
|
|
public struct DefaultLabelModel: LabelModel {
|
|
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
|
|
public init(){}
|
|
}
|