     var hideKeyboardButton: UIButton?
     let hideKeyboardButtonWidth:CGFloat = 40
     let hideKeyboardButtonHeight:CGFloat = 30
+    
+    var keyboardAnimationDuration: Double = 0
+    var keyboardAnimationCurve: UInt = 0
 
     override func viewDidLoad() {
         super.viewDidLoad()

        hideKeyboardButton = button
        
        let origCenter = button.center
        let newCenter = CGPointMake(0, origCenter.y)
        
        button.center = newCenter
        

        self.view.addSubview(button)
        
        UIView.animateWithDuration(0.5, animations: { () -> Void in
            button.alpha = 0.75
            button.center = origCenter
            }) { (finish) -> Void in

        return (x,y,w,h)
    }
    
    var hidingKeyboardFlag: Bool = false
    
    /**
    onHideKeyboardButtonClick
    
    - parameter sender: sender
    */
    func onHideKeyboardButtonClick(sender: UIButton) {
        
        hidingKeyboardFlag = true
        
        if let btn = hideKeyboardButton {
            UIView.animateWithDuration(keyboardAnimationDuration, delay: 0, options: UIViewAnimationOptions(rawValue: keyboardAnimationCurve), animations: { () -> Void in
                btn.alpha = 0
                btn.center = CGPointMake(btn.center.x, UIScreen.mainScreen().applicationFrame.height - self.hideKeyboardButtonHeight/2)
                }) { (finish) -> Void in
                    btn.removeFromSuperview()
                    print("animate state = \(finish)")
            }
        }
        self.view.endEditing(false)
    }
