udpated for micro issue on no textsize

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-08-17 14:27:44 -05:00
parent 42e417b043
commit 350da3fb2b

View File

@ -83,8 +83,8 @@ extension TypographicalStyle {
} }
} }
public func style(for fontSize: FontSize, isBold: Bool = false) -> TypographicalStyle? { public func style(for fontSize: FontSize?, isBold: Bool = false) -> TypographicalStyle? {
let styleName = "\(isBold ? "Bold" : "")\(self.rawValue)\(fontSize.rawValue)" let styleName = "\(isBold ? "Bold" : "")\(self.rawValue)\(fontSize?.rawValue ?? "")"
guard let style = TypographicalStyle(rawValue: styleName) else { guard let style = TypographicalStyle(rawValue: styleName) else {
return nil return nil
} }