                         self?.animate(to: self?.normalConstant, userInfo: userInfo)
                     }
 
-        notifications?.append(not1)
-        notifications?.append(not2)
+        notifications?.append(keyboardWillShow)
+        notifications?.append(keyboardWillHide)
         super.awakeFromNib()
     }
 

                        }
                    }

        let not2 = NotificationCenter.default.addObserver(forName: NSNotification.Name.UIKeyboardWillHide,
                                                          object: nil,
                                                          queue: OperationQueue.main)
                    { [weak self] (notification) in

    override open func awakeFromNib() {
        //swiftlint:disable opening_brace
        normalConstant = constant
        let keyboardWillShow = NotificationCenter.default.addObserver(forName: NSNotification.Name.UIKeyboardWillShow,
                                               object: nil,
                                               queue: OperationQueue.main)
                    { [weak self] (notification) in
