I'm working on a VisionOS-based application, and I'm facing a challenge when attempting to programmatically capture the content of a view that's currently in front of the user's eyes.
I've tried using the traditional methods for capturing a view, such as using UIView.renderedImage or UIWindow snapshots. However, these approaches does not capture components in front of user's eyes.