First I had a UIViewController that listened for a UIKeyboardWillShow notification to adjust the screen for the keyboard. But every time I switched to the emoji keyboard, a notification was not triggered.
So, I changed to a UIKeyboardWillChangeFrame notification like this
NotificationCenter.default.addObserver(self, selector: #selector(self.keyboardChanged(notification:)), name: NSNotification.Name.UIKeyboardWillShow, object: nil)
This seems like normal if I just switch to emoji by pressing the keyboard type.
However, if I press and hold the type of keyboard to select (I have more than one language on the keyboard) and select the emoji keyboard, the notification will not start.
Has anyone had something like this before? Any suggestions?
source share