// // TitleLockupSubTitleModel.swift // VDS // // Created by Matt Bruce on 1/6/23. // import Foundation extension TitleLockup { public struct SubTitleModel { public var text: String public var standardStyle: OtherStandardStyle public var textColor: Use /// Array of LabelAttributeModel objects used in rendering the text. public var textAttributes: [any LabelAttributeModel]? public var numberOfLines: Int public init(text: String, standardStyle: OtherStandardStyle = .bodyLarge, textColor: Use = .primary, textAttributes: [any LabelAttributeModel]? = nil, numberOfLines: Int = 0) { self.text = text self.standardStyle = standardStyle self.textColor = textColor self.textAttributes = textAttributes self.numberOfLines = numberOfLines } /// TextStyle used to render the text. public var textStyle: TextStyle { standardStyle.value.regular } } }