ImageAnalysisInteraction doesn't call contentsRect delegate's method

Hello,


I am struggling with an issue that `contentsRect(for:)` method of ImageAnalysisInteractionDelegate is not being called at any moment. I've set up the demo project where the interaction is added to root view of view controller while I'm analyzing the image of UIImageView that is added to this view. I want to achieve the behavior where I could define contents rect for highlights of found text on that image.


P.S. I know that I could simply add interaction to an image view but that's not the case - the real work that I want to achieve is to display live text on paused video player, so that image view here is for simplicity only.



Posted on Aug 11, 2022 7:33 AM

Reply

Similar questions

2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

ImageAnalysisInteraction doesn't call contentsRect delegate's method

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.