Question

I have a UIPageViewController with a transparent background and I'm wondering if I can make the non-selected page dots opaque. They're current translucent and I can see my background through them.

Is this possible?

Was it helpful?

Solution

I haven't tried it, but there's a pageIndicatorTintColor and currentPageIndicatorTintColor, both of which take a UIColor where you can probably set the alpha. Although the docs warn:

No alpha is applied to this property for you. It is recommended (but not required) that the color you specify for this parameter contains some transparency–i.e. the alpha value should be less than 1.0.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top