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
ColorStyle
andBackgroundColorScheme
combination.Declaration
Swift
func hexColor(for style: ColorStyle) -> HexColor?
Parameters
style
ColorStyle
for which color definition is requiredReturn Value
Hex color, a dictionary contains
.light
and.dark
variant