added in model conversion to textStyle

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-10-04 12:03:18 -05:00
parent 0510cded89
commit 69d057c45a

View File

@ -69,6 +69,8 @@ extension LabelAttributeFontModel: VDSLabelAttributeConvertable {
var textStyle: TextStyle? var textStyle: TextStyle?
if let found = style?.vdsTextStyle() { if let found = style?.vdsTextStyle() {
textStyle = found textStyle = found
} else if let name, let size, let font = UIFont(name: name, size: size) {
textStyle = TextStyle.convert(font: font)
} else if let name, let found = TextStyle(rawValue: name) { } else if let name, let found = TextStyle(rawValue: name) {
textStyle = found textStyle = found
} }