Thanks for sharing the control. I ran into an issue when using it in combination with UIPageViewController
. When I update the number of UIViewControllers
which are contained in the UIPageViewController
the PageControl
disappears.
I recorded this gif (https://abload.de/img/nov-03-201618-31-58a9jcm.gif) to demonstrate the issue. At first there are two UIViewController
, which can be swipped through. With a click on the "+" button a new UIViewController
gets added to the datasource of UIPageViewController
- this makes the PageControl
disappear.
For updating numberOfPages
I wrote the following function
func mainPageViewController(mainPageViewController: MainPageViewController, didUpdatePageCount count: Int) { pageControl.numberOfPages = count }
Do you have an idea why this happens? THX