Skip to content

UIPageControl: currentPageIndicatorTintColor property ​

The currentPageIndicatorTintColor property is the color of the current page's dot.

Value ​

A color string, or null.

  • Readable and writable.
  • Defaults to null: the system default color.
  • Write a color string ('#ff3b30', 'secondaryLabel') or a UIColor object; a string you write reads back as is.
  • Writing null returns to the system default color.
  • The on-screen effect of the color is not verified in the simulator.

Invalid values ​

Writing an unrecognized color doesn't throw; a warning is printed to the console and the property keeps its previous value. For how to write colors, see Colors.

Examples ​

js
const pages = new UIPageControl();
pages.numberOfPages = 3;
pages.currentPageIndicatorTintColor = '#007AFF';

Effect: The current page's dot is blue. Not verified in the simulator.

Corresponding iOS API ​

UIPageControl.currentPageIndicatorTintColor; the native type is UIColor.

See also ​