     }
   }
 
+  public func pageViewController(pageViewController: UIPageViewController, didFinishAnimating finished: Bool, previousViewControllers: [AnyObject], transitionCompleted completed: Bool) {
+    if completed {
+      pagesDelegate?.pageViewController(self, setViewController: pages[currentIndex], atPage: currentIndex)
+    }
+  }
 }
 
 // MARK: Private methods

      setViewControllers([viewController],
        direction: .Forward,
        animated: true,
        completion: nil)
      if setNavigationTitle {
        title = viewController.title
      }
    }
  }

import UIKit

@objc(HYPPagesControllerDelegate) public protocol PagesControllerDelegate {

  func pageViewController(pageViewController: UIPageViewController, setViewController viewController: UIViewController, atPage page: Int)
}

@objc(HYPPagesController) public class PagesController: UIPageViewController, UIPageViewControllerDelegate, UIPageViewControllerDataSource {

