SwiftUI Snapshot doesn't match simulator #595
Unanswered
humblehacker
asked this question in
Q&A
Replies: 1 comment
-
Part of the difference looks to be "the view minus a navigation controller", and SwiftUI in particular changes how it renders things based on context - so it wouldn't surprise me if that were part of the scenario here. |
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
-
I'm testing out snapshot testing in a prototype app, and I've noticed that the snapshots taken don't match an actual simulator screenshot, at least for Form fields. For example, notice how in the snapshot image each text field in the form seems to be in its own bubble.
Can anyone account for the differences? Should I expect other views to have similar discrepancies? Or is there something I can do to correct it myself? Sorry if this has been answered already. I couldn't find anything when I searched.
Beta Was this translation helpful? Give feedback.
All reactions