Replies: 1 comment
-
It's my understanding that this is a limitation of Swift Packages, not SnapshotTesting. This is because Swift Packages cannot contain an entire application. Applications require an Xcode project, and Xcode projects cannot be held inside a Swift Package. Snapshots of individual SwiftUI Views can be made in a Swift Package, but if your snapshot requires a host application then you need to make it in an Xcode project. (Also, when making a snapshot that requires an application, don't forget to set drawHierarchyInKeyWindow to true. See ) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I added snapshot testing to swift package test target, package tests run without host application. On snapshots I see background but I can't make them render text. Any ideas how to make it happen? I'm testing SwiftUI views.
Beta Was this translation helpful? Give feedback.
All reactions