added the fontSize as a last resort for vars being set in the Label after fontStyle and fontName.

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-03-14 14:31:57 -05:00
parent f53847372a
commit 09081b8bc8

View File

@ -209,6 +209,9 @@ public typealias ActionBlock = () -> ()
if let newFont = UIFont(name: fontName, size: fontSize ?? standardFontSize) {
font = newFont
}
} else if let fontSize = viewModel.fontSize {
standardFontSize = fontSize
font = textStyle.font.withSize(fontSize)
}
if let color = viewModel.textColor {