1. Install the CLI
2. Authenticate
3. Initialize your project
grantiva.yml with auto-detected scheme and simulator settings.
4. Define your screens
Editgrantiva.yml to list the screens you want to test:
5. Capture baselines
Take initial screenshots:6. Run comparisons
After making changes, compare against baselines:7. Add to CI
How diffing works
Each screen is compared using two metrics:| Metric | Default threshold | Description |
|---|---|---|
| Pixel diff | 2% | Percentage of pixels that differ |
| Perceptual distance | 5.0 | CIE76 color space distance (more human-aware) |
grantiva.yml: