Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drawing outside UIInputViewController frame

Intro: I'm developing a keyboard extension for my native Armenian language.

The keyboard's features should look like maximum similar to system default keyboard.

One of the features I want to have inside my keyboard is to display Pop-ups on top of the touched buttons, like it is for English keyboard

enter image description here

As you can see the pop-up can be drawn outside the keyboard frame

Problem: I've managed to draw successfully the pop-up inside the frame of keyboard, but it gets masked to the keyboard frame, i.e. I'm not able to draw some part of pop-up outside of keyboard frame. I.e.

enter image description here

What I tried: I tried the to set the property view.layer.masksToBounds = NO; of UIInputViewController instance, but still I got my extension masked. The official docs are yet not quite descriptive on this issue. Although this might be one of the iOS keyboard extension limitations.

Any suggestions, references are welcomed on how to draw outside UIInputViewController frame ?

like image 309
deimus Avatar asked Sep 30 '22 05:09

deimus


1 Answers

The documentation says that this is not possible: In addition, it is not possible to display key artwork above the top row, as the system keyboard does on iPhone when you tap a key in the top row.

like image 185
robert Avatar answered Oct 17 '22 01:10

robert