Related sample project: https://github.com/vChewing/vChewing-macOS/tree/f6271bbf50a2c377d9c2095d0f31f1492a653aef
It seems that individual bug reports doesn't work at all. Besides, the entire InputMethodKit needs a renovation.
This thread will be sent to Apple by certain special approaches after gathering enough usable information.
Let's talk about what InputMethodKits needs to improve. Here's my conclusion. If Apple think there's already an API, then it might be either mulfunctioning or not exposed to Swift.
- An official Swift-friendly wrapper with neither "!" nor "?" in the parameters of all provided APIs.