I realize the question is a bit vague, but the Apple documentation is horrendous and hoping you could assist.
Basically, imagine a scenario where you are assisting in spell checking (or some other text manipulation of the given keystrokes in a text element).
I want to listen for events on the text element, run some text processing, and present a popup dialogue that the user can interact with.
Once the user selects (or escapes) out of the dialogue I should be able to replace the typed text
I've gone through the "actions", "attributes" and various other documentation I could find but see nothing about how to create elements.
You can see this type of interaction in apps like Grammarly and Fig etc.
I can't seem to find ANY code at all with examples for this 🤔
No Apple documentation seems to exist as well...



I realize the question is a bit vague, but the Apple documentation is horrendous and hoping you could assist.
Basically, imagine a scenario where you are assisting in spell checking (or some other text manipulation of the given keystrokes in a text element).
I want to listen for events on the text element, run some text processing, and present a popup dialogue that the user can interact with.
Once the user selects (or escapes) out of the dialogue I should be able to replace the typed text
I've gone through the "actions", "attributes" and various other documentation I could find but see nothing about how to create elements.
You can see this type of interaction in apps like
GrammarlyandFigetc.I can't seem to find ANY code at all with examples for this 🤔
No Apple documentation seems to exist as well...