From 07f8921a4f4c505aa3649665471d57b73c646b1e Mon Sep 17 00:00:00 2001 From: "Christiano, Kevin" Date: Wed, 24 Apr 2019 14:32:43 -0400 Subject: [PATCH] minor. --- MVMCoreUI/Atoms/Views/Label.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MVMCoreUI/Atoms/Views/Label.swift b/MVMCoreUI/Atoms/Views/Label.swift index b4b90731..8ca484e3 100644 --- a/MVMCoreUI/Atoms/Views/Label.swift +++ b/MVMCoreUI/Atoms/Views/Label.swift @@ -195,13 +195,13 @@ import MVMCore if let fontName = attribute.optionalStringForKey("name") { font = MFFonts.mfFont(withName: fontName, size: fontSize ?? label.font.pointSize) - } else if let fontSize = fontSize { + } else if let fontSize = fontSize { font = label.font.withSize(fontSize) } if let font = font { attributedString.removeAttribute(.font, range: range) - attributedString.addAttribute(.font, value: font as UIFont, range: range) + attributedString.addAttribute(.font, value: font, range: range) } default: continue