 }
 
 /** A pre-configured wrapper class for UIPageViewController with a simple implementation that:
-
+ 
  - encapsulates common delegate methods
  - keeps track of indexes
  - turns page control on/off with the pageControlEnabled boolean
  - comes with an Appearable hook for child view controllers
-
-*/
+ 
+ */
 @objc class JKPageViewController: UIPageViewController {
   /// for inspecting view hierarchy and current index.
   var debugging:Bool = false {
     didSet {
-      println("JKPageViewController debugging: \(debugging)")
+      print("JKPageViewController debugging: \(debugging)")
     }
   }
   /// allows for removal of dead space at the bottom when configured before viewDidLoad

    (pages[previousIndex] as? Appearable)?.didDisappearFromScreen()
    (pages[currentIndex] as? Appearable)?.didAppearOnScreen()
    if debugging {
      println("previousIndex: \(previousIndex) viewController: \(pages[previousIndex])")
      println("currentIndex: \(currentIndex) viewController: \(pages[currentIndex])")
    }
  }
  
  func scrollViewWillBeginDecelerating(scrollView: UIScrollView) {
    if debugging {
      println("nextIndex: \(nextIndex) viewController: \(pages[nextIndex])")
    }
    (pages[currentIndex] as? Appearable)?.willDisappearFromScreen()
    (pages[nextIndex] as? Appearable)?.willAppearOnScreen()

}

/* Implementation:
 
 func makeViewControllers() {
 let loginMockVC = MockupVC()
 loginMockVC.mockupImage = UIImage(named: "login.png")
 let exploreMockVC = MockupVC()
 exploreMockVC.mockupImage = UIImage(named: "explore.png")
 let trendingMockVC = MockupVC()
 trendingMockVC.mockupImage = UIImage(named: "trending.png")
 let specificMockVC = MockupVC()
 specificMockVC.mockupImage = UIImage(named: "specific.png")
 
 viewControllers = [loginMockVC, exploreMockVC, trendingMockVC, specificMockVC]
 }
 
 func addPageVC() {
 pageViewController = PageVC(transitionStyle: UIPageViewControllerTransitionStyle.Scroll, navigationOrientation: .Horizontal, options: nil)
 
 pageViewController.pageControlEnabled = true
 pageViewController.debugging = true
 pageViewController.pages = viewControllers
 addChildViewController(self.pageViewController)
 view.addSubview(self.pageViewController.view)
 pageViewController.didMoveToParentViewController(self)
 
 pageViewController.setInitialPage()
 }
 
 */
