Live Text seems to be added to UIImageView via `.addInteraction(<ImageAnalysisInteraction>)`. Is there a way to add this interaction to SwiftUI's `Image`?
I don’t believe so. You can probably wrap a UIImageView
in a ViewRepresentable
- but of course it wouldn’t be a SwiftUI image anymore. I think we might have sample code that does something similar in the State of the Union donut app
Here's the relevant part in the Platforms State of the Union video.
But yeah, we definitely need SwiftUI support for the new VisionKit APIs 🙂 feedbacks may help