As far as I remember on iOS this works through using a private API call. But maybe this has changed :)
1 2Samuel
@samuel.fm
I think it’s usable through SwiftUI now
developer.apple.com/documentatio...
translationPresentation(isPresented:text:attachmentAnchor:arrowEdge:replacementAction:) | Apple Developer Documentation
There's never been a better time to develop for Apple platforms.
developer.apple.com