Enumerations
The following enumerations are available globally.
-
Implementation of FontSetProtocol which uses UIFont’s systemFont(ofSize:, weight:) function to transform Strings into UIFonts using the font weight as the String key.
Remark
Uses default pointSize of 25. To set pointSize, consider defining property like fontSize to call UIFont’s .withSize(fontSize:) to convert this to a new Font with a given size.Declaration
Swift
public enum SystemFontSet: String, FontSetProtocol
-
Implementation of FontSetProtocol which uses UIFont’s preferredFont(forTextStyle:) function to transform Strings into UIFonts
Remark
When using this FontSet, no sizes need be specified as they are implicitly derived from UIFontTextStyleDeclaration
Swift
public enum PreferredFontSet: String, FontSetProtocol
-
Conforms to StylePropertyProtocol and contains all common style properties.
See moreDeclaration
Swift
public enum StyleProperty: String, StylePropertyProtocol
-
Defines all possible plists used in PlistStyleStrategy
See moreDeclaration
Swift
public enum StylePlistType