Skip to content

UIColor.systemCyanColor static property ​

The UIColor.systemCyanColor static property is the cyan among the system colors. System colors are a set of colors commonly used in iOS interfaces; their values are determined by the system and differ slightly between Light Mode and Dark Mode.

You don't need it in everyday code: write the string 'systemCyan' 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.systemCyanColor === UIColor.systemCyanColor is true.
  • Assigning it to a color property has the same effect as writing 'systemCyan'. It reads back as the string 'systemCyan', not a UIColor object. Reading back 'systemCyan' 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 is not documented.

Examples ​

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

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

Corresponding iOS API ​

UIColor.systemCyanColor. In Swift the name is UIColor.systemCyan, which matches the color name string here.

See also ​