It is possible to trigger the emoji keyboard programmatically?
I am trying to open the emoji keyboard when the user click in a button, it is possible?
Here is answer:
Change the iOS keyboard layout to emoji?
After that, do follow:
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
messageTextView.keyboardType = .asciiCapable
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
messageTextView.keyboardType = .default
messageTextView.reloadInputViews()
}
After press button call: messageTextView.reloadInputViews()