Could anyone here tell me how I can use Live Text API in SwiftUI ? The code provide uses UIKit and not complete, the code is for existing project, but I want to develop a new SwiftUI project, so I have no idea how to implement it.
How can I use Live Text API in SwiftUI
Figure it out. Check my blog
https://h76joker.medium.com/enabling-live-text-interactions-with-images-in-swiftui-5dd1d7f1676
Hi there, you would need to create your view in Swift, use the UIViewRepresentable protocol to add it to SwiftUI.
Here are some links that may help you.
https://developer.apple.com/documentation/swiftui/uiviewrepresentable
https://developer.apple.com/videos/play/wwdc2019/231/?time=847