Cursor syncing between an text view and IOS touch screen cursor position.

My swift IOS apps SummaGram are in distribution. The app puts button values into a text view area and controls the cursor.  Upon an IOS  touch screen, cut or paste, the IOS cursor loses sync with the app cursor causing an address out of bounds and fails.




The IOS cut or paste changes the cursor position and the text.endIndex address by shrinking or expanding the text field.  IOS doesn't know about the app cursorPosition.  If IOS could update the app cursor position and the  text.endIndex position would  solve the problem.  Or if the app knew about the IOS change could update the app cursor position and the text.endIndex.




The current work around is the user sets the cursor to the text.startIndex using an app navigating button before the touch screen.  The app does not fail.  The user then navigates the cursor using arrow buttons to another position.




To see this happen download the free SummaGramIPAD Trial.   TSIs have been requested with engineer  suggestions for well over one year.  I hope someone could figure this out. 


I just finished SummaGram iPhone  and would like to host it.  


Thanks for your help.


Charlie 



iPhone 13 mini, iOS 18

Posted on Jul 1, 2025 1:48 PM

Reply
3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Cursor syncing between an text view and IOS touch screen cursor position.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.