udpated for micro issue on no textsize
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
42e417b043
commit
350da3fb2b
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user