If a user types in a UITextView using an input method such as Chinese pinyin, there is a state in which the pinyin is already displayed in text form, but the user has not yet determined the final Chinese characters. The screenshot will be more clear:

I want to do some text completion for the user, but I have to do this only for real input (choose Chinese characters), but not for Pinyin intermediate login. Therefore, I need to detect this waiting state.
an0
source share