From 09081b8bc80551f6d0475f138d2222a9e9947ebc Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 14 Mar 2024 14:31:57 -0500 Subject: [PATCH] added the fontSize as a last resort for vars being set in the Label after fontStyle and fontName. Signed-off-by: Matt Bruce --- MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift b/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift index 0b12b5a9..d8c114f8 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift @@ -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 {