Hi Rick,
I may have solved this! Try this:
Add the UITextInteraction to your view.
Iterate view.interactions. One of them will be a UITextSelectionDisplayInteraction that was added by the UITextInteraction.
When you call becomeFirstResponder to present the keyboard, also set activated = true on the UITextSelectionDisplayInteraction. The cursor will appear!
Note that has only been tested for about 30 seconds so far!
You may be interested to know that I found this while trying to solve the related problem of how to avoid a "ghost" edit menu being left when I call resignFirstResponder; see https://developer.apple.com/forums/thread/751307
It may be worth not using UITextInteraction, and instead using UITextSelectionDisplayInteraction and UIEditMenuInteraction (etc?) directly, with your own logic to replace the glue provided by UITextInteraction.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: