From 350da3fb2b8acb4fcef2f2552719144b7a12c4bd Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 17 Aug 2022 14:27:44 -0500 Subject: [PATCH] udpated for micro issue on no textsize Signed-off-by: Matt Bruce --- VDS/Typography/Typography.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VDS/Typography/Typography.swift b/VDS/Typography/Typography.swift index d623d34f..04d91df5 100644 --- a/VDS/Typography/Typography.swift +++ b/VDS/Typography/Typography.swift @@ -83,8 +83,8 @@ extension TypographicalStyle { } } - public func style(for fontSize: FontSize, isBold: Bool = false) -> TypographicalStyle? { - let styleName = "\(isBold ? "Bold" : "")\(self.rawValue)\(fontSize.rawValue)" + public func style(for fontSize: FontSize?, isBold: Bool = false) -> TypographicalStyle? { + let styleName = "\(isBold ? "Bold" : "")\(self.rawValue)\(fontSize?.rawValue ?? "")" guard let style = TypographicalStyle(rawValue: styleName) else { return nil }