FUIPaletteProvider

public protocol FUIPaletteProvider : _PaletteProvider

Protocol defining available color palette provider.

  • hexColor(for:variant:) Default implementation

    Required interface to supply color definitions for the FUIColorStyle and FUIBackgroundColorScheme combination.

    Default Implementation

    Declaration

    Swift

    @available(*, deprecated, renamed: "hexColor(for:﹚")
    func hexColor(for style: FUIColorStyle, variant: FUIColorVariant) -> FUIPaletteHexColor

    Parameters

    style

    Style for which color definition is required

    variant

    Color variant of color definition. Defaults to return .light variant, if none exists for .dark.

    Return Value

    Optional hex color code