-
Notifications
You must be signed in to change notification settings - Fork 17
Add uniqueName property and update attachment naming in SnapshotTest
#234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| case .previewProvider(let internalPreview, let previewType): | ||
| return Preview(preview: internalPreview, type: previewType, uniqueName: uniqueName) | ||
| case .previewRegistry(let anyValue): | ||
| #if compiler(>=5.9) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get rid of these now that Xcode 16 is out?
|
|
||
| private enum InternalPreview { | ||
| case previewProvider(_Preview, any SwiftUI.PreviewProvider.Type) | ||
| // Can't use DeveloperToolsSupport.Preview here because it's not available before iOS 17 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use a protocol that you conform DeveloperToolsSupport.Preview to in an extension?
| public let platform: PreviewPlatform? | ||
| } | ||
|
|
||
| private struct PreviewTypeInfo { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having a PreviewType and also PreviewTypeInfo is a bit confusing, can we clean this up?
No description provided.