Enumeration
DSFontRenderingType
public enum DSFontRenderingType: String, CaseIterable
A type that defines the rendering font that a generic Enterprise control should use.
A rendering font can be used to determine the appearance of various views. Where possible, a DSLabel is preferred over a UILabel when displaying text because some rendering fonts should be paired with specific colors and color is not part of a UIFont.
Preferred:
let label = DSLabel(renderingType: .headlineWhite)
NOT preferred:
let label = UILabel()
label.font = UIFont.headlineWhite
label.textColor = UIColor.grayscaleWhite
Relationships
Conforms To
CaseIterable
String
Enumeration Cases
Properties
name
public var name: String
Returns an English name of the rendering font. Useful mostly for debugging.