@simonbs @lextar @steveshepard Curious if you experience the same: When setting the new inlinePredictionType to yes, the prediction is triggered via setAttributedMarkedText. But when setting the marked range, the insertion caret disappears and does not re-appear even when removing and re-adding the UITextInteraction.
@knutknatter @simonbs Seeing the same thing. The caret disappears after inserting the attributed marked text. For me, it reappears after a tap. It looks like _UICursorAccessoryHostView is hidden after this call. I'll file a Feedback tomorrow AM.
@knutknatter @simonbs Feedback is down for me, so I'll try again later. A quick update to say that _UICursorAccessoryHostView was a red herring. The real issue is that _UITextCursorView is removed after setting the attributed marked text.
@steveshepard @knutknatter I'm seeing the same thing. _UITextCursorView is removed from the view hierarchy when setting the marked range.
@steveshepard @knutknatter I see that this has been an issue for me before and I have this code snippet to work around it. I call this function at the end of setAttributedMarkedText(_:selectedRange:) but as Till said, even this doesn't address the issue on iOS 17.
@simonbs @steveshepard Still does not work in latest beta, correct?
@knutknatter @steveshepard Yes. Both the issue where the caret does not appear when swapping out an non-editable UITextInteraction with an editable UITextInteraction and the issue where the caret disappears after setAttributedMarkedText(_:selectedRange:) seems to be present in beta 7 too 😞
@simonbs @steveshepard nothing fixed in beta 8 it seems
@knutknatter @simonbs I don't see any action on the Feedback I submitted (FB13024851), It's still open with no similar reports. Let me know if you filed one too, and I'll add a reference in my report.
@steveshepard @simonbs sorry that was Simon’s. Here’s mine: FB12968285