     }
     @objc private func didBeginEditing(notifi:Notification) {
         self.currentTF = notifi.object as? UIView
-        self.oldFrame = (UIApplication.shared.keyWindow?.rootViewController?.view.frame)!
         let keyView = UIApplication.shared.keyWindow?.rootViewController?.view
-        keyView?.frame = self.oldFrame
         let rect = (self.currentTF?.superview?.convert((self.currentTF?.frame)!, to: keyView))!
         self.viewBottom = rect.maxY
         self.adjustViewHeight()
     }
     @objc private func didEndEditing(notifi:Notification) {
-        self.oldFrame = UIScreen.main.bounds
         self.keyBoardOrigiY = 0
         self.viewBottom = 0
         self.forntOrigiY = 0

class BQKeyManager: NSObject {
    private var isRegister = false
    private var currentTF: UIView!
    private var oldFrame: CGRect = UIScreen.main.bounds
    private var viewBottom: CGFloat = 0
    private var keyBoardOrigiY: CGFloat = 0
    private var forntOrigiY: CGFloat = 0

        let keyView = UIApplication.shared.keyWindow?.rootViewController?.view
        if self.keyBoardOrigiY < self.viewBottom {
            self.forntOrigiY = self.keyBoardOrigiY
            UIView.animate(withDuration: 0.3, animations: {
                keyView?.frame = CGRect(origin: CGPoint(x: 0, y: self.keyBoardOrigiY - self.viewBottom), size: UIScreen.main.bounds.size)
            });
            self.keyBoardOrigiY = 0
        }else {
            if keyView!.frame != UIScreen.main.bounds {
                UIView.animate(withDuration: 0.25, animations: {
                    keyView?.frame = UIScreen.main.bounds
                })
            }
        }
    }
    @objc private func keyBoardWillDismiss(notifi:Notification) {
