vds_ios/VDS/Components/TitleLockup/TitleLockupEyebrowModel.swift
Matt Bruce 01299c86ef updated eyebrow to be defaulted to bold
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2023-06-29 16:15:38 -05:00

33 lines
990 B
Swift

//
// TitleLockupEyebrowModel.swift
// VDS
//
// Created by Matt Bruce on 1/6/23.
//
import Foundation
extension TitleLockup {
public struct EyebrowModel {
public var text: String
public var isBold: Bool
public var textAttributes: [any LabelAttributeModel]?
public var standardStyle: OtherStandardStyle
public var numberOfLines: Int
public init(text: String,
isBold: Bool = true,
standardStyle: OtherStandardStyle = .bodyLarge,
textAttributes: [any LabelAttributeModel]? = nil,
numberOfLines: Int = 0) {
self.text = text
self.isBold = isBold
self.standardStyle = standardStyle
self.textAttributes = textAttributes
self.numberOfLines = numberOfLines
}
public var textStyle: TextStyle { isBold ? standardStyle.value.bold : standardStyle.value.regular }
}
}