Hey,
I’m still relatively new to swiftUI and was wondering if swiftUIs ToolTip feature is what I was looking for.
The thing I was looking for is something similar to the both Screenshots, where some Text is selected and upon the text selection, on the users view, immediately pops up a blurred (glassy design?) view with a variety of options.
These options are usually buttons and when clicking on them, the user may be directed to another view (via navigation link?) and after the user may have done something in this new view, it gets popped from the navigation link. Thus the user again sees the initial view (like on the two example screenshots) with still the same text being selected and the tooltip view being shown.
If the users taps elsewhere, thus the selection should go away as usual and therefore the tooltip view as well.
To sum up, is tooltip that what I’m thinking it may can do? And eventually if it’s true that this feature, if it’s the right tool, is only available to iOS 15+?
Thank you for your help :)
Post
Replies
Boosts
Views
Activity
Hey,
I’m wondering if it’s possible to use the Translation service by Apple when selecting text like it’s possible in safari or other apps developed by apple. For example in notes or others you can select text and hit the translate button, which shows the translation to the systems language as far as I know. My question now is if it is possible to also provide this feature in my own app. To be more specific, having a selectable text view , then being able to translate this wording and maybe even get the results not only shown to the user himself but returning the translation to my own app for further processes …
as far as I know, the standard dictionary entries are provided by Oxford or in Germany by Duden api services. Is it even possible to the app to choose which service to use and another question: is it possible to customize the options popping up when text is selected? (The view where also “copy”,”paste”,”cut”…. Is shown -> extend options with “translate”?
Many thanks for your help. Unfortunately, I haven’t found an answer to those questions. My only thought has been to use external api by Oxford etc but first I would like to be in knowledge of the possibility or unavailability of the given service already implemented by apple to iOS and macOS devices.
Have a great day. À bientôt