How to write an input method on iOS? This question has been answered a lot of people over。You can easily find a detailed tutorial by Google。but,On macOS write an input method is not so simple。
Ok,Strictly speaking,I mean use Swift to write a input method is difficult on macOS。The main reason is that no one has ever done this thing 。
Current data can be acquired,In addition to Apple's official API description (of no use),And the official demo (very detailed but outdated,and[……]