 import UIKit
 
 open class McPicker: UIView {
+    
+    enum AnimationDirection {
+        case `in`, out
+    }
     
     fileprivate var pickerSelection:String = ""
     

        }
    }


    func sizeViews() {
        self.frame = CGRect(x: 0,
                            y: 0,
                            width: self.topViewController.view.bounds.size.width,
                            height: self.topViewController.view.bounds.size.height)
        picker.frame = CGRect(x: 0,
                              y: self.bounds.size.height - self.picker.bounds.size.height,
                              width: self.bounds.size.width,
                              height: self.picker.bounds.size.height)
        toolbar.frame = CGRect(x: 0,
                               y: self.bounds.size.height - picker.bounds.size.height - toolBarHeight,
                               width: self.bounds.size.width,
                               height: toolBarHeight)
    }
    
}

    fileprivate var picker:UIPickerView = UIPickerView()
    fileprivate var toolbar:UIToolbar = UIToolbar()
    
    private let backgroundView:UIView = {
        let view = UIView()
        view.backgroundColor = UIColor.white
        return view
    }()
    
    private let doneBarButton = UIBarButtonItem(barButtonSystemItem: .done,
                                                target: self,
                                                action: #selector(done))
