_PaletteProvider
public protocol _PaletteProvider
Protocol defining available color palette provider.
-
Color definitions that are supported in the current palette.
Declaration
Swift
var colorDefinitions: [FUIColorStyle : FUIHexColor] { get }
-
Required interface to supply color definitions for the
FUIColorStyle
andFUIBackgroundColorScheme
combination.Declaration
Swift
func hexColor(for style: FUIColorStyle) -> FUIHexColor?
Parameters
style
FUIColorStyle
for which color definition is requiredReturn Value
Hex color, a dictionary contains
.light
and.dark
variant