doordash-oss / swiftui-preview-snapshots

Apache License 2.0
154 stars 7 forks source link

Add optional name parameter to assertion functions #2

Closed jflan-dd closed 11 months ago

jflan-dd commented 11 months ago

Add the ability to provide an optional name to the various assertSnapshots functions.

This could be used to provide different names for snapshotting a view a multiple sizes or provide a name based on the platform being tested, among various other reasons.

jflan-dd commented 11 months ago

@mackoj I'm planning to use this to be able to specify iOS/macOS or UIKit/AppKit in future PRs that will enable testing on multi-platform testing for #1