5

I'm making a custom keyboard and I want to transition directly to emoji keyboard that is provided by Apple when nextKeyboard button is pressed.

 @IBAction func nextKeyboardPressed(sender: AnyObject) {
        advanceToNextInputMode()
    }

This code takes me to the stock keyboard.
Stock iOS

And I want this keyboard to open when nextKeyboard is pressed
Emoji keyboard

Is it possible? Is there a way to access stack of installed keyboards?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Statik
  • 342
  • 1
  • 3
  • 14

2 Answers2

0

No, you can't. It has been quite limited that the custom keyboard extension to access the external data for some reasons (Especially for security). There is no way to know active keyboards nor change to particuller keyboard.

kishikawa katsumi
  • 10,418
  • 1
  • 41
  • 53
0

You can't, in the section Providing a Way to Switch to Another Keyboard of this document, Apple says:

To ask the system to switch to another keyboard, call the advanceToNextInputMode method of the UIInputViewController class. The system picks the appropriate “next” keyboard; there is no API to obtain a list of enabled keyboards or for picking a particular keyboard to switch to.

However, you could modify your Keyboard to contain an Emoji section as well.

Daniel
  • 20,420
  • 10
  • 92
  • 149