what the bug looks like I'm having this weird action when I use the following code to display those little dots in UIPageViewController. How can I fix it? Is this a swift bug or I'm doing something wrong?
func presentationCountForPageViewController(pageViewController: UIPageViewController) -> Int {
return numOfImages
}
func presentationIndexForPageViewController(pageViewController: UIPageViewController) -> Int {
return currentIndex
}