iOS Support External Keyboard Without Displaying One
Given a UIViewController , I would like to receive text input only from the external keyboard. Think UIKeyCommand but for any character (not just 'modified' ones). However, when I try to implement that using UIKeyInput , it seems that iOS desperately wants to display a keyboard if there is no external one connected. Is there any way to circumvent that? Specifically, to have the options to receive keystrokes from the keyboard if, and only if, one is connected? After fiddling with a iPad for an hour, I finally have a good solution for this in swift. The other methods are weak or use 3rd party