How to understand when the system use autocomplete in textView in Swift -


i have textview , enabled text suggestions. how can understand when user writing part of word , when press space/return system autocomplete word?

my problem want change font , go new line when user press font changing button on screen. when button clicked, system add line, new font, after add autocompletion , override added line , change selected range.

at end cursor on previous line between letters of added autocompleted word , when start typing new added font.

p.s.

textview.autocorrectiontype = .no

is not working, because system knows wants change word. found solution

resignfirstresponder()

beginfirstresponder()

in method. make autocomplete first , after continue method. , yeah, because make both of them there no moving keyboard(hide, show), want find better solution


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -