How to implement UITextItem in custom text view with UITextInput and TextKit2

Hi Apple,

I'm implementing a custom text view by conforming to UITextInput and backing it with TextKit2.

However, I like the UITextItem feature of the default UITextView. Can I get some guidance on how to reimplement it?

Are we looking at overlaying UIMenu buttons? Or some API where I can display a UIMenu at a rect I specify? Hopefully, it is not some kind of private API?

Thanks for the help in advance.

Nice

How to implement UITextItem in custom text view with UITextInput and TextKit2
 
 
Q