     private var barView: BarView!
     private var currentChildView: UIView?
     private var currentChildViewController: UIViewController?
-
+    // select screen
+    private var selectScreenPopup: UIView?
+    // settings screen
+    private var settingsScreenPopup: UIView?
+
+    // animations
+    private var popupDuration: NSTimeInterval = 1.0
+    
     
     override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() }
     

        
        _barView.delegate = self
        _barView.frame = barViewFrame
        
        self.view.addSubview(_barView)
        


extension ViewController: BarViewDelegate {
    
    /**

     tag 0 --> hidden
     tag 1 --> present
     
    */
    func presentSelect() {
        
        // instantiate if nil
        if self.selectScreenPopup == nil {
            
            let selectScreenPopupFrame = CGRect(
                x: 0.0,
                y: screenHeight,
                width: screenWidth,
                height: childViewHeight
            )
            
            self.selectScreenPopup = UIView(frame: selectScreenPopupFrame)
            self.selectScreenPopup!.layer.zPosition = 3.0
            self.selectScreenPopup!.backgroundColor = UIColor.purpleColor()
            
            self.view.addSubview(self.selectScreenPopup!)
            
        }
        
        if self.selectScreenPopup!.tag == 0 {
            
            UIView.animateWithDuration(popupDuration) {
                
                self.selectScreenPopup!.frame.offsetInPlace(dx: 0.0, dy: -self.screenHeight)
                
            }
            
            self.selectScreenPopup!.tag = 1
            
        } else {
            
            UIView.animateWithDuration(popupDuration) {
                
                self.selectScreenPopup!.frame.offsetInPlace(dx: 0.0, dy: self.screenHeight)
                
            }

            self.selectScreenPopup!.tag = 0
            
        }
        
    }
    
