 
     @objc private func orientationWillChange(notification: Notification) {
         let userInfo = notification.userInfo
-        let v = userInfo?[UIApplicationStatusBarOrientationUserInfoKey] as! NSNumber
+        let v = userInfo?[UIApplication.statusBarOrientationUserInfoKey] as! NSNumber
         let o = UIInterfaceOrientation(rawValue: v.intValue)
 
         let degress = rotationDegress(orientation: o!)

        let paragraphStyle = NSMutableParagraphStyle.default.mutableCopy()
        (paragraphStyle as! NSMutableParagraphStyle).lineBreakMode = .byWordWrapping
        (paragraphStyle as! NSMutableParagraphStyle).alignment = .center
        let dict = [NSAttributedStringKey.font: UIFont.boldSystemFont(ofSize: 14.0),
                    NSAttributedStringKey.paragraphStyle: paragraphStyle,
                    NSAttributedStringKey.foregroundColor: UIColor.white]
        (messageText! as NSString).draw(in: messageRect!, withAttributes: dict)

        if let image = image {

            }
            vKeyboardFrame.origin = CGPoint.zero
        } else {
            vKeyboardFrame.origin.x = abs(keyboardFrame.size.width - screenFrame.size.width)
            vKeyboardFrame.origin.y = abs(keyboardFrame.size.height - screenFrame.size.height)

            if vKeyboardFrame.origin.x > 0 {
                let temp = vKeyboardFrame.origin.x
