     //  MARK: Target - Action
     @objc private func keyboardWillAppear(notification: Notification) {
         let userInfo = notification.userInfo
-        let aValue = userInfo?[UIKeyboardFrameEndUserInfoKey] as! NSValue
+        let aValue = userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as! NSValue
         let keyboardFrame = aValue.cgRectValue
         let screenFrame = UIScreen.main.bounds
 

    private func adjust() {
        let size = messageText?.boundingRect(with: CGSize(width: 160.0, height: 200.0),
                                             options: [.usesLineFragmentOrigin],
                                             attributes: [NSAttributedStringKey.font: UIFont.boldSystemFont(ofSize: 14.0)],
                                             context: nil).size
        messageText?.size(withAttributes: [NSAttributedStringKey.font: UIFont.boldSystemFont(ofSize: 14.0)])
        var imageAdjustment: CGFloat = 0.0
        if image != nil {
            imageAdjustment = 7.0 + (image?.size.height)!

        NotificationCenter.default
            .addObserver(self,
                         selector: #selector(RGToast.keyboardWillAppear(notification:)),
                         name: UIResponder.keyboardWillShowNotification,
                         object: nil)

        NotificationCenter.default
            .addObserver(self,
                         selector: #selector(RGToast.keyboardWillDisappear(notification:)),
                         name: UIResponder.keyboardDidHideNotification,
                         object: nil)

        NotificationCenter.default
            .addObserver(self,
                         selector: #selector(RGToast.orientationWillChange(notification:)),
                         name: UIApplication.willChangeStatusBarOrientationNotification,
                         object: nil)
    }

