         self.endEditing(true)
     }
 }
-extension UIView {
-    open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
-        self.endEditing(true)
-    }
-}

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

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