The method of taking screenshots in IOS can be done through the "view. layer. render (in: UIGraphicsGetCurrentContext()!)" method. What should be replaced with "view. layer" in VisionOS to call the ". render (in: UIGraphicsGetCurrentContext()!)" method??
How to call the screenshot method in VisionOS?
Hi @iOS-LI
You can use ImageRenderer to render a SwiftUI view to an image. Does that help? If not please provide more details on your use case so I can better assist you.