Skip to content
ppraveentr edited this page Oct 23, 2022 · 1 revision

Extensions on Font

Methods

fromStyleName(styleName:)

Generate Font based on styleName

static func fromStyleName(styleName: String) -> Font? 

fromSize(size:weight:)

Generate Font based on size:​ CGFloat and Font/Weight

static func fromSize(size: CGFloat, weight: String) -> Font? 

weightValue(_:)

Generate Font/Weight based on weight

static func weightValue(_ weight: String) -> Font.Weight