Structures

The following structures are available globally.

  • Undocumented

    See more

    Declaration

    Swift

    public struct HexColor : Hashable
    extension HexColor: Equatable
    extension HexColor: CustomStringConvertible
  • A struct for providing color palette.

    See more

    Declaration

    Swift

    public struct Palette : PaletteProvider
    extension Palette: Equatable
  • API to load and apply style sheet information (to override color definitions)

    Changes made to the manager affect all future calls to Color.preferredColor(_:background:interface:display:).

    Example Usage

    var colorOverrides = """
    @primaryLabel:#FF6000;
    @primaryLabel_darkBackground:#00FFFF;
    """
    
    try? StyleSheetSettings.loadStylesheetByString(content: colorOverrides)
    
    See more

    Declaration

    Swift

    public struct StyleSheetSettings