<!--
{
  "availability" : [
    "macOS: 27.0.0 -",
    "Xcode: 27.0.0 -"
  ],
  "documentType" : "article",
  "framework" : "SpatialPreview",
  "identifier" : "/documentation/SpatialPreview/working-with-content-from-your-mac-app-using-spatial-preview",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "Working with content from your Mac app using Spatial Preview"
}
-->

# Working with content from your Mac app using Spatial Preview

Send and update documents, and work with 3D content live from your macOS app to a visionOS device through the Spatial Preview framework.

## Discussion

The Spatial Preview framework lets Mac apps send content to a nearby Apple Vision Pro so people can view it spatially and immersively. This sample includes two examples that illustrate the main session types:

- `DocumentPreviewSession`: A spatial photo gallery example that streams stereo HEIC images to Apple Vision Pro so people can browse spatial photos immersively without leaving the Mac workflow.
- `USDPreviewSession`: A 3D interior design example that uses USD to adjust furniture layouts live with override layers, and an asset-review workflow that uses text annotations.

> Note: This sample code project is associated with WWDC26 session 282: [Discover the Spatial Preview framework](https://developer.apple.com/wwdc26/282/)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)