The app needs to additionally make these features available as system services[1]. It shouldn't take more than a few extra lines of code to do so, and the advantage is that you can select text in any app to use as input.
1. https://developer.apple.com/design/human-interface-guideline...