         setUpScrollIndicator()
     }
     
-    open override func viewWillAppear(_ animated: Bool) {
-        super.viewWillAppear(animated)
-    }
-    
-    //MARK: Segmented control action
+    // MARK: Segmented control action
     @objc func pageSegmentedControlValueChanged() {
         //Call delegate method before changing value
         delegate?.pagerController?(self, willChangeSelectedPageIndex: selectedPageIndex, fromPageIndex: previousPageIndex)

        let oldViewController = viewControllers[previousPageIndex]
        let newViewController = viewControllers[selectedPageIndex]
        
        if automaticallyHandleAppearanceTransitions {
            oldViewController.beginAppearanceTransition(false, animated: true)
            newViewController.beginAppearanceTransition(true, animated: true)
        }

            self.setNeedsStatusBarAppearanceUpdate()
            
        }, completion: { (finished) -> Void in
            
            //Call delegate method after changing value
            self.delegate?.pagerController?(self, didChangeSelectedPageIndex: self.selectedPageIndex)
        })
        
        // Call these two methods to notify that two view controllers are already removed or added to container view controller (Check Documentation)
        if automaticallyHandleAppearanceTransitions {
            oldViewController.removeFromParent()
            newViewController.didMove(toParent: self)
            
            oldViewController.endAppearanceTransition()
            newViewController.endAppearanceTransition()
        }
        
        // Setting up new previousPageIndex for next change
        previousPageIndex =  selectedPageIndex
    }
    
    // Remove all current child view controllers
