also refactored models into class that are the parents Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
28 lines
747 B
Swift
28 lines
747 B
Swift
//
|
|
// TitleLockupTitleModel.swift
|
|
// VDS
|
|
//
|
|
// Created by Matt Bruce on 1/6/23.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension TitleLockup {
|
|
public struct TitleModel {
|
|
public var text: String
|
|
public var textAttributes: [any LabelAttributeModel]?
|
|
public var textStyle: TitleTextStyle
|
|
public var numberOfLines: Int
|
|
|
|
public init(text: String,
|
|
textAttributes: [any LabelAttributeModel]? = nil,
|
|
textStyle: TitleTextStyle = .BoldFeatureXSmall,
|
|
numberOfLines: Int = 0) {
|
|
self.text = text
|
|
self.textAttributes = textAttributes
|
|
self.textStyle = textStyle
|
|
self.numberOfLines = numberOfLines
|
|
}
|
|
}
|
|
}
|