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
Hi!
I've just discovered that if you update SDWebImageSwiftUI to higher version than 2.1.0, snapshots (swift snapshot-testing) are no longer properly generated. I can't see any images cached by SDWebImageMockPlugin.
2.1.0 is the last version which works for me.
Can anyone check and confirm that?
All the best!
Krzysztof
The text was updated successfully, but these errors were encountered:
Hi, thanks for raising this issue with latest version of SDWebImageSwiftUI.
I gave it a try and I find the same issues that you had, the images are not rendered on the snapshots.
By looking at the code of SDWebImageSwiftUI I found that the changes in that pull request is causing the issue: SDWebImage/SDWebImageSwiftUI#232.
The backport behavior is adding a DispatchQueue.main.async (this one) between the appearance of the WebImage and the loading of the image, and this is preventing the snapshot to be taken with the image.
I can suggest you a workaround to make your tests pass (if it works for you): 11abca6
Hi!
I've just discovered that if you update
SDWebImageSwiftUI
to higher version than2.1.0
, snapshots (swift snapshot-testing) are no longer properly generated. I can't see any images cached bySDWebImageMockPlugin
.2.1.0
is the last version which works for me.Can anyone check and confirm that?
All the best!
Krzysztof
The text was updated successfully, but these errors were encountered: