             containerView?.frame.size.height = keyboardEndFrame.origin.y
         }
     }
-    func keyboardWillHide(_ notification: Foundation.Notification) {
+    func keyboardDidHide(_ notification: Foundation.Notification) {
         isShowKeyboard = false
         
         if let userInfo = (notification as NSNotification).userInfo,

        
        NotificationCenter.default.addObserver(
            self,
            selector: #selector(PopupPresentationController.keyboardWillShow(_:)),
            name: NSNotification.Name.UIKeyboardWillShow,
            object: nil)
        NotificationCenter.default.addObserver(
            self,
            selector: #selector(PopupPresentationController.keyboardWillHide(_:)),
            name: NSNotification.Name.UIKeyboardWillHide,
            object: nil)
    }
    

    }
    
    
    func keyboardDidShow(_ notification: Foundation.Notification) {
        isShowKeyboard = true
        
        if let userInfo = (notification as NSNotification).userInfo,
