26 lines
633 B
Swift
26 lines
633 B
Swift
//
|
|
// VDSLabelModel.swift
|
|
// VDS
|
|
//
|
|
// Created by Matt Bruce on 7/28/22.
|
|
//
|
|
|
|
import Foundation
|
|
import UIKit
|
|
|
|
public protocol LabelModel: Modelable, Labelable {
|
|
var text: String? { get set }
|
|
var attributes: [any LabelAttributeModel]? { get set }
|
|
}
|
|
|
|
public struct DefaultLabelModel: LabelModel {
|
|
public var id = UUID()
|
|
public var text: String?
|
|
public var attributes: [any LabelAttributeModel]?
|
|
public var typograpicalStyle: TypographicalStyle = .BodySmall
|
|
public var textPosition: TextPosition = .left
|
|
public var surface: Surface = .light
|
|
public var disabled: Bool = false
|
|
public init(){}
|
|
}
|