WKSnapshotConfiguration
The configuration data to use when generating an image from a web view’s contents.
Declaration
@MainActor class WKSnapshotConfigurationOverview
Create a WKSnapshotConfiguration object when you want to generate an image based on your web view’s content. Use this object to specify the portion of the web view to capture and the capture behavior. To generate the snapshot, pass the configuration object to the takeSnapshot(with:completionHandler:) method of WKWebView, which returns a platform-native image for you to use.