PaletteProvider
public protocol PaletteProvider
Protocol defining available color palette provider.
-
Color definitions that are supported in the current palette.
Declaration
Swift
var colorDefinitions: [ColorStyle : HexColor] { get } -
Required interface to supply color definitions for the
ColorStyleandBackgroundColorSchemecombination.Declaration
Swift
func hexColor(for style: ColorStyle) -> HexColor?Parameters
styleColorStylefor which color definition is requiredReturn Value
Hex color, a dictionary contains
.lightand.darkvariant