Documentation

UIColor​.isBrightColor()

Determines whether a color has high perceived brightness.

static isBrightColor(color: UIColor, threshold?: number): boolean;

Parameters

Return value

True if the color’s perceived brightness exceeds the threshold.

Related