SwiftUI ScrollView Image Capture And Save

I am new to SwiftUI and ScrollView. Working on a scrollview with horizontal scroll populated by a linemark graph using IOS Charts. Currently using IOS 16 and Xcode 14.0.1. Would appreciate any examples to capture and save the scrolling view as an image to the .documentDirectory. I have the linemark scrolling view working correctly with Charts. Thanks.

SwiftUI ScrollView Image Capture And Save
 
 
Q