FB17945919: With read-only UITextView or UITextInput, initial selection shows as snapping to words during gesture but doesn’t snap when gesture ends
Submission Date
2025-06-11
Status
Open
Area
UIKit
Operating System Version
iOS 26
Type
Incorrect/Unexpected Behavior
Description
Steps:
- Create a non-editable UITextView or custom implementation of UITextInput + UITextInteraction. This is already set up with UITextView in the attached sample project, The whole project is only a few lines of code.
- Long press and drag to create a selection, ending the drag in the middle of a word. See attached video.
Expected:
Selection text should be snapped to complete words.
Actual:
Selection appears snapped to words during the gesture but doesn’t snap to words after. See attached video.
Notes:
This is a longstanding issue not new in iOS 26.
Our real project doesn’t use UITextView but uses UITextInput + UITextInteraction because we make an SDK for viewing PDF documents so use our own rendering. You can see this in our app at https://apps.apple.com/app/id1120099014 We can provide a more complex sample project using UITextInput + UITextInteraction if that’s helpful. From the outside, it looks like this may be one underlying issue even though it occurs using two APIs.
https://github.com/user-attachments/assets/8dce008b-570d-4d48-818c-d77f600a462b
Keywords
No response
Prerequisites
- [x] The title follows the format
FB<number>: <title> - [x] I will keep this issue updated with Apple's responses