UIScreenshotService
An object that coordinates the creation of PDF screenshots of an app’s content.
Declaration
@MainActor class UIScreenshotServiceOverview
When people take a screenshot of your app’s content, you work with a UIScreenshotService object to provide a PDF version of that screenshot. You don’t create a UIScreenshotService object directly. Instead, you retrieve the object from the screenshotService property of your window scene and assign a delegate to it. Then when people take a screenshot, UIKit asks your delegate for the PDF data.
For information about how to provide the PDF data, see UIScreenshotServiceDelegate.