-
Notifications
You must be signed in to change notification settings - Fork 215
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
FBSnapshotVerifyView doesn't seem to work well with SwiftUI #97
Comments
This has nothing to do with the library, if you check |
In this way, the image is well generated. Option 1
Option 2
|
Yes, works well! Thanks for your help @leohidalgo 🍻😊 |
I would like to discuss why this should be done now and not before. The both option run, why?, I don't know 😬 |
I checked briefly transcriptions from WWDC vids (searching for „window”), but didn’t find any clue 🤷🏼♂️ |
I think I have the answer, https://developer.apple.com/documentation/swiftui/color The view is only resolved to concrete when it is displayed, In our case in a UIWindow. |
The issue happens in Xcode 11 beta 2 (11M337n) and beta 3 (11M362v). I know it's an early moment and maybe it's a bug in the SDK, but currently when I invoke this with
recordMode = true
I get a blank snapshot:The text was updated successfully, but these errors were encountered: