You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@kelvinlauKL The screenshot has the error message mostly truncated. It looks like a compile failure but it's not easy to troubleshoot as is. Can you share sample code reproducing the issue?
My bad - the error message is Type of expression is ambiguous without a type annotation. I realized this compiler error is happening when my device is set to "My Mac". The compiler error goes away if I set it to an iOS device.
I have the same issue and was looking into it. I found out to my surprise that the current library does not seam to have the image not compiled for MacOS as the current snapshot implementation seams to rely on making the view a UIImage and embedding it in a viewController. Both do not exist on macOS.
So SwiftUI view support is limited to iOS like platforms
I'm building a UI library as a Swift Package. Attempting to use
SnapshotTesting
gives me this:Here's my package file:
Is this not supported in a Swift Package?
The text was updated successfully, but these errors were encountered: