     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

    */
    func keyboardDidShow(notification: NSNotification) {
        
        let info  = notification.userInfo!
        
        keyboardAnimationDuration = info[UIKeyboardAnimationDurationUserInfoKey]!.doubleValue
        keyboardAnimationCurve = UInt(info[UIKeyboardAnimationCurveUserInfoKey]!.intValue)
        
        let frame = getKeyboardFrame(notification)
        
        if frame.h == 0 {
            return
        }
        
        var button: UIButton!
        if let btn = hideKeyboardButton {
            btn.removeFromSuperview()
        }
        
        button = UIButton(frame: CGRectMake(frame.w - hideKeyboardButtonWidth, frame.y - hideKeyboardButtonHeight, hideKeyboardButtonWidth, hideKeyboardButtonHeight))
        button.setTitle("hide", forState: UIControlState.Normal)
        button.backgroundColor = UIColor(red: 173.0/255.0, green: 181.0/255.0, blue: 189.0/255.0, alpha: 1)
