how to make screenshot
Asked on 04/06/2025
1 search
To take a screenshot using the new APIs presented at WWDC, you can use the SC screenshot manager
from the ScreenCaptureKit. This manager offers a screenshot API that allows you to take screenshots in HDR. Here's a brief overview of how you can achieve this:
-
Create a Configuration: Start by creating a configuration for HDR local display. This configuration will be pre-populated with recommended values for taking HDR screenshots.
-
Choose the Output Format: If your app needs CM sample buffers for the screenshot, use the
captureSampleBuffer
function. If a CG image is preferred, use thecaptureImage
function. -
Use Presets: Presets are available for taking HDR screenshots, and you can choose between local or canonical display presets depending on your needs.
For more detailed information, you can refer to the session Capture HDR content with ScreenCaptureKit (05:51) where they discuss the screenshot API and provide code examples.

Introducing enterprise APIs for visionOS
Find out how you can use new enterprise APIs for visionOS to create spatial experiences that enhance employee and customer productivity on Apple Vision Pro.

Build a great Lock Screen camera capture experience
Find out how the LockedCameraCapture API can help you bring your capture application’s most useful information directly to the Lock Screen. Examine the API’s features and functionality, learn how to get started creating a capture extension, and find out how that extension behaves when the device is locked.

Capture HDR content with ScreenCaptureKit
Learn how to capture high dynamic colors using ScreenCaptureKit, and explore new features like HDR support, microphone capture, and straight-to-file recording.