ColorPickerTab

@objc(HBColorPickerTab)
public enum ColorPickerTab : Int, CaseIterable

An enumeration of the tabs ColorPickerViewController features. Use these enumeration values to set tab-related settings on ColorPickerConfiguration.

  • Tab 1: A grid of 9 variations of 11 colours, and a grayscale ramp. The first and default tab.

    Declaration

    Swift

    case swatch = 0
  • map

    Tab 2: A color wheel displaying every possible hue and saturation combination. The user can additionally adjust the brightness of the colour using a slider.

    Declaration

    Swift

    case map = 1
  • Tab 3: A set of sliders for red, green, and blue color values, which can be switched to hue, saturation, and brightness. The user can additionally copy or enter a color value expressed using a CSS-style hexadecimal string, and adjust alpha transparency.

    Declaration

    Swift

    case sliders = 2
  • Tab 4: A tab that allows the user to test various configurations of the color, and its conformance to WCAG color contrast.

    Declaration

    Swift

    case accessibility = 3