We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug This is the image that is generated from trying to snapshot a SwiftUI view:
I tested multiple views and this happens for all of them.
To Reproduce
This is the code in my test:
let contentView = NCCapabilitiesView(capabilitiesStatus: getCapabilitiesViewOOForPreview()) assertSnapshot(matching: contentView, as: .image)
The view shows just fine on Xcode preview and I call it the same way:
static var previews: some View { NCCapabilitiesView(capabilitiesStatus: getCapabilitiesViewOOForPreview()) }
The only way I can fix this is by specifying the frame size myself:
NCCapabilitiesView(capabilitiesStatus: getCapabilitiesViewOOForPreview()).frame(width: 300, height: 300)
I don't think this is how it's supposed to work however.
Expected behavior The snapshot image should generate properly from the SwiftUI view.
Environment
The text was updated successfully, but these errors were encountered:
You could check this workaround: #368 (comment)
Sorry, something went wrong.
No branches or pull requests
Describe the bug
This is the image that is generated from trying to snapshot a SwiftUI view:
I tested multiple views and this happens for all of them.
To Reproduce
This is the code in my test:
The view shows just fine on Xcode preview and I call it the same way:
The only way I can fix this is by specifying the frame size myself:
I don't think this is how it's supposed to work however.
Expected behavior
The snapshot image should generate properly from the SwiftUI view.
Environment
The text was updated successfully, but these errors were encountered: