pointfreeco / swift-snapshot-testing

📸 Delightful Swift snapshot testing.
https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing
MIT License
3.73k stars 565 forks source link

Added an isOpaque parameter to view strategies to allow for transparent snapshots #776

Open HarshilShah opened 11 months ago

HarshilShah commented 11 months ago

This PR allows you to capture transparent screenshots. Previously, all transparent bits would get replaced with white, and so this could be a breaking change for existing tests, and so is gated behind an isOpaque parameter that is true by default, thus retaining the old behaviour