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.
    See more

    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 UIFontTextStyle
    See more

    Declaration

    Swift

    public enum PreferredFontSet: String, FontSetProtocol
  • Defines all possible plists used in PlistStyleStrategy

    See more

    Declaration

    Swift

    public enum StylePlistType