📸 Automatic snapshots from Xcode previews. Supports UIKit/AppKit/SwiftUI on iOS/macOS/watchOS/visionOS/tvOS. Browse previews in-app with the Preview Gallery, or save them to PNGs with an XCTest
SnapshotPreviews is a tool for automatically generating snapshot images from Xcode previews across all Apple platforms (iOS, macOS, watchOS, tvOS, and visionOS). It supports both SwiftUI and UIKit previews created with `PreviewProvider` or the `#Preview` macro, and exports rendered snapshots as PNGs with JSON metadata for use with visual diffing services like Sentry Snapshots. The project is built in Swift and uses XCTest for snapshot generation; it's maintained by EmergeTools and distributed as a Swift Package Manager dependency, with support for exporting snapshots via command-line environment variables and integration with CI/CD tools like GitHub Actions and Fastlane.