     let scrollView = ContainerView(frame: CGRectZero)
 }
 
-public extension PageController {
-
-    func frameForMenuBar() -> CGRect {
+extension PageController {
+
+    public var frameForMenuBar: CGRect {
         var frame = CGRect(x: 0, y: 0, width: view.bounds.width, height: 44)
         if let frameForNavigationBar = navigationController?.navigationBar.frame {
             frame.origin.y = frameForNavigationBar.maxY

            }
        }

        scrollView.contentOffset = frameForCenterContentController().origin
        loadPages(AtCenter: index)
    }


import UIKit

public protocol PageControllerDelegate: class {
    func pageController(pageController: PageController, didChangeVisibleController visibleViewController: UIViewController, fromViewController: UIViewController?)
}

