                 width: self.size,
                 height: self.size
             )
-            }, completion: nil)
+        }, completion: nil)
     }
 
     internal func keyboardWillHide(_ notification: Notification) {
-        
-        if sticky == true {
+        guard respondsToKeyboard, !sticky else {
             return
         }
         

    }

    internal func keyboardWillShow(_ notification: Notification) {
        guard let keyboardSize: CGFloat = (notification.userInfo?[UIKeyboardFrameBeginUserInfoKey] as? NSValue)?.cgRectValue.size.height else {
            return
        }
        
        if sticky == true {
            return
        }

        if isCustomFrame == false {
            setRightBottomFrame(keyboardSize)
        } else {
            size = min(frame.size.width, frame.size.height)
        }

        UIView.animate(withDuration: 0.2, delay: 0, options: UIViewAnimationOptions(), animations: {
            self.frame = CGRect(
                x: UIScreen.main.bounds.width-self.size - self.paddingX,

            } else {
                self.size = min(self.frame.size.width, self.frame.size.height)
            }
            
        }, completion: nil)
    }
}

