Skip to content

UIColor.quaternaryLabelColor static property ​

The UIColor.quaternaryLabelColor static property is a semantic color: the color of the lightest level of text. Semantic colors are named by purpose; their values are determined by the system and change with Light Mode, Dark Mode, and the Increase Contrast setting.

You don't need it in everyday code: write the string 'quaternaryLabel' directly to a color property for the same effect.

Value ​

UIColor.

  • Read-only. Assigning to it throws TypeError.
  • Reading it always returns the same object: UIColor.quaternaryLabelColor === UIColor.quaternaryLabelColor is true.
  • Assigning it to a color property has the same effect as writing 'quaternaryLabel'. It reads back as the string 'quaternaryLabel', not a UIColor object. Reading back 'quaternaryLabel' after writing it to a color property goes through the same code as the other color names and is not individually verified in the simulator.
  • The exact value has not been measured.

Examples ​

js
const box = new UIView();
box.backgroundColor = UIColor.quaternaryLabelColor;
console.log(box.backgroundColor);

Result: The console prints quaternaryLabel. The on-screen color is not verified in the simulator.

Corresponding iOS API ​

UIColor.quaternaryLabelColor. In Swift the name is UIColor.quaternaryLabel, which matches the color name string here.

See also ​