Structures
The following structures are available globally.
-
Implementation of ColorSetProtocol which transform Hex strings into UIColors using the color’s hex value as the String key.
See moreDeclaration
Swift
public struct HexColorSet: ColorSetProtocol
-
Implementation of FontSetProtocol which uses UIFont’s init(name:, size:) function to transform Strings into UIFonts using the font’s name 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 struct CustomFontSet: FontSetProtocol