iOS Custom Keyboard Extension - Change height to fullscreen

I have an iOS Custom Keyboard Extension (UIInputViewController) and I want to make it fullscreen.

Changing its height is pretty straightforward:

self.heightConstraint = NSLayoutConstraint(item: self.view!,
                                                   attribute: NSLayoutConstraint.Attribute.height,
                                                   relatedBy: NSLayoutConstraint.Relation.equal,
                                                   toItem: nil,
                                                   attribute: NSLayoutConstraint.Attribute.notAnAttribute,
                                                   multiplier: 0,
                                                   constant: UIScreen.main.bounds.height)

The problem is that the keyboard's frame is placed on top of the UIKeyboardDockView -- the bottom area that contains the globe (change keyboard) and the mic (dictation) icon.

Now, I want to get access to that bottom area so that I can subtract its height to UIScreen.main.bounds.height.

Does anyone know if it's possible? If not, please feel free to suggest any other solution.

You can hide the Mike (turn dictation off) ; you can hide the globe as well : https://developer.apple.com/documentation/uikit/keyboards_and_input/creating_a_custom_keyboard

Use UIInputViewController’s needsInputModeSwitchKey property to determine if you should display a button to switch keyboards.

But I don't think we can remove the bar

https : / / w w w.reddit. com/r/iphone/comments/7ay7x7/anyone_else_hate_this_bar_under_the_keyboard/

I could not find how to access to UIKeyboardDockView. I do not find it described in doc.

iOS Custom Keyboard Extension - Change height to fullscreen
 
 
Q