         super.viewDidLoad()
         view.backgroundColor = UIColor.white
         
+        pageScrollView.delegate = self
+        observeScrollViewDelegate(pageScrollView)
+        
         setUpViewControllers()
         
         updateSegmentedTitleTextAttributes()
         
         // Add subviews
-        view.addSubview(scrollIndicator)
         view.addSubview(pageScrollView)
         view.addSubview(pageSegmentedControl)
+        view.addSubview(scrollIndicator)
     }
     
     open override func viewDidLayoutSubviews() {

    }
    
    // Observe delegate value changed to disallow that
    func observeScrollViewDelegate(_ scrollView: UIScrollView) {
        scrollView.addObserver(self, forKeyPath: #keyPath(UIScrollView.delegate), options: NSKeyValueObservingOptions.new, context: nil)
    }
    
    func unobserveScrollViewDelegate(_ scrollView: UIScrollView) {
        scrollView.removeObserver(self, forKeyPath: #keyPath(UIScrollView.delegate), context: nil)
    }
}


            viewController.view.frame = CGRect(x: CGFloat(index) * view.bounds.width, y: 0, width: view.bounds.width, height: view.bounds.height - segmentedControlHeight)
            pageScrollView.addSubview(viewController.view)
        }
        
        // Enable animation back
        UIView.setAnimationsEnabled(true)
        
