Add Live Text interaction to your app

RSS for tag

Discuss the WWDC22 Session Add Live Text interaction to your app

Posts under wwdc2022-10026 tag

4 Posts

Post

Replies

Boosts

Views

Activity

Getting selected text from ImageAnalysisInteraction on UIImageView
I work on an iOS app that displays images that often contain text, and I'm adding support for ImageAnalysisInteraction as described in this WWDC 2022 session. I have gotten as far as making the interaction show up and being able to select text and get the system selection menu, and even add my own action to the menu via the buildMenuWithBuilder API. But what I really want to do with my custom action is get the selected text and do a custom lookup-like thing to check the text against other content in my app. So how do I get the selected text from an ImageAnalysisInteraction on a UIImageView? The docs show methods to check if there is selected text, but I want to know what the text is.
5
1
2.4k
Aug ’23
Crash
Hello! I found a crash at the start of the app with an error: error: memory read failed for 0x0 Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) If I add to the project: @available(iOS 16.0, *) @MainActor class SomeClass { var configuration: ImageAnalyzer.Configuration? } But if I replace the class with a structure, then the app will run without crash: @available(iOS 16.0, *) @MainActor struct SomeStruct {     var configuration: ImageAnalyzer.Configuration? } Xcode 14.0 beta 5 (14A5294e) iOS 15.6 On iOS 16 beta, both options work, without crashes. Any suggestion as to what to look for?
2
1
1.9k
Aug ’22
Getting selected text from ImageAnalysisInteraction on UIImageView
I work on an iOS app that displays images that often contain text, and I'm adding support for ImageAnalysisInteraction as described in this WWDC 2022 session. I have gotten as far as making the interaction show up and being able to select text and get the system selection menu, and even add my own action to the menu via the buildMenuWithBuilder API. But what I really want to do with my custom action is get the selected text and do a custom lookup-like thing to check the text against other content in my app. So how do I get the selected text from an ImageAnalysisInteraction on a UIImageView? The docs show methods to check if there is selected text, but I want to know what the text is.
Replies
5
Boosts
1
Views
2.4k
Activity
Aug ’23
Crash
Hello! I found a crash at the start of the app with an error: error: memory read failed for 0x0 Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) If I add to the project: @available(iOS 16.0, *) @MainActor class SomeClass { var configuration: ImageAnalyzer.Configuration? } But if I replace the class with a structure, then the app will run without crash: @available(iOS 16.0, *) @MainActor struct SomeStruct {     var configuration: ImageAnalyzer.Configuration? } Xcode 14.0 beta 5 (14A5294e) iOS 15.6 On iOS 16 beta, both options work, without crashes. Any suggestion as to what to look for?
Replies
2
Boosts
1
Views
1.9k
Activity
Aug ’22
Is it possible to get the bounding box locations for selected text in Live Text (VisionKit)?
I’m using visionKit to create a "LiveText" overlay on a UIImageView. This functionality has been added in IOS 16. I understand I can get bounding boxes for all text recognized, but I only want the bounding boxes for the selected text. Is this possible?
Replies
0
Boosts
0
Views
1k
Activity
Aug ’22
Where to find the feature about Live Text API in WebKit?
I found webkit is mentioned in wwdc2022-10026,but not more information provide?I would like to know where I can collect related resource!Please~ https://developer.apple.com/videos/play/wwdc2022/10026/
Replies
0
Boosts
0
Views
1.3k
Activity
Jun ’22