Releases: Sherlouk/swift-snapshot-testing-stitch
Add HEIC Support
With thanks to @alexey1312, we now support creating and storing images in the HEIC format. This is functionally the same as PNG but allows for much smaller file sizes.
To use this new capability, simply add format: .heic()
to your stitch function call. See tests for more complete examples.
Add Configure Block
This version adds a new StitchTask
struct which can be used in replacement of the tuples which were required previously. The old method is still supported, so is entirely backwards compatible.
The new StitchTask
struct also supports a new, optional, configuration block. If used, it allows you to mutate the underlying input value before the snapshot is taken for that task. This can be handy if you have functionality not controlled by traits and still want to visualise multiple variants.
Beware though, future stitches using the same value object will use the now mutated version. We would recommend that if you're configuring one task, that you reset/configure every task that uses the same object to prevent inconsistencies and inaccuracies.
Version One
Introducing SnapshotTesting Stitch.
A new extension to SnapshotTesting by Pointfree, which allows you to generate snapshots combining multiple strategies into one.
Fix Unnamed Assets
- Fixed an issue where unnamed tasks would output the wrong image
- Increased the amount of customisation options in
StitchStyle
- Allow for
precision
to be set in the public interface - Reduced Swift build tools requirement to 5.2 (was 5.3)
- Improved documentation
Support UIView
Removes the tie to UIViewController which allows this feature to be used by any other SnapshotTesting strategy as long as the output is a UIImage.
Initial Release
0.0.1 Initial Commit