Himanshu Himanshu - 6 months ago 5x
Swift Question

Adding dots to bottom of UIPageViewController screen

I have implemented the data source methods of UIPageViewController and still not getting dots at bottom of my iOS app. Anybody have any solution to make dots appear on my app?


When you are using UIPageViewController your dots should be visible by default. I guess you have white background and since the dots are white as well you just simply don't see them. Try to change dots color:

var pageControlAppearance  = UIPageControl.appearanceWhenContainedIn(UIPageViewController.self, nil)
pageControlAppearance.pageIndicatorTintColor = UIColor.redColor()
pageControlAppearance.currentPageIndicatorTintColor = UIColor.redColor()

If that doesn't help, please make sure that you are using UIPageViewControllerTransitionStyleScroll transition style.