← All repos

SnapshotPreviews

📸 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

tag-production
Browse cluster: HTML Parsing & Error Tracking
236commits
12contributors
6languages

Tech stack & purpose

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.

Languages

Swift
48.0%
C++
47.3%
Shell
2.4%
Objective-C
1.5%
Ruby
0.5%
Objective-C++
0.4%

Contributors