iOS floating caret position

Hello,

On iOS it is possible to use the keyboard spacebar to move the caret while editing text. The user has to longpress on the spacebar, and then the keyboard would turn into a trackpad that moves around a floating caret.

Is there a way to get the position of the caret while the user uses this space bar navigation? And by the position I mean the position in an app or in a frame?

Are there any other events that this action can send out?

Thanks a lot!

Answered by DTS Engineer in 789575022

Yes, you can create a subclass of your text input view (UITextView or UITextField) and override the following UITextInput methods to get notified when a person long presses the space button and moves the cursor:

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Yes, you can create a subclass of your text input view (UITextView or UITextField) and override the following UITextInput methods to get notified when a person long presses the space button and moves the cursor:

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

iOS floating caret position
 
 
Q