Accessory View Not Displayed When Switching Input Methods via Bluetooth Keyboard

Hello everyone, When I press Control + Space on my Bluetooth keyboard to trigger input method switching, the accessory view fails to appear. This prevents me from quickly identifying the current input method type.

Upon inspecting the View Hierarchy, I noticed that UICursorAccessoryView is not being created.

For context, my input method responder inherits from UIResponder and conforms to the UITextInputTraits, UIKeyInput, and UITextInput protocols.

The accessory view displays normally during accented input and Chinese input. Could you please guide me on how to troubleshoot this issue?

I tried the following and the issue doesn't seem to happen:

  • Create a view (UIView) and set it to myTextView.inputAccessoryView, where myTextView is a UITextView instance.

  • Override UIResponder.inputAccessoryView to return an input accessory view in my own text input view, which is a subclass of UIView and supports UITextInput.

In these two cases, when I switch the input method from English to Chinese (and vice versa) in my iPad simulator (iPadOS 26.1 23B86) by typing Control + Space with my Apple Magic keyboard, the input accessory view is always there.

If you don't mind to share the code snippets you use to set up the input accessory view, and the steps to observe the issue, I can probably take a closer look.

Also, does the issue happen when you use a system-provided text view, such as an instance of UITextsView or UITextField?

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Accessory View Not Displayed When Switching Input Methods via Bluetooth Keyboard
 
 
Q