wait strategy used with custom Snapshotting extension?
#543
Unanswered
simondelphia
asked this question in
Q&A
Replies: 1 comment
-
|
still have this issue |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If you have a
Snapshottingextension that takes in whatever type and transforms it to aUIViewand try to usewaitwith it to try to capture some delayed change to the view, it doesn't seem to have the desired effect.Here I used an
Intand some viewMyViewwhich has an initializer that accepts anIntas input just as an example. Let's sayMyViewanimates some label such that it animates from a default state to one showing the passed value.The view is produced but the resulting snapshot is as if there was no wait. If Instead I don't use a
Snapshottingextension and just callassertSnapshoton aMyViewinstance directly, it seems to work properly.Plus if you put a long delay on the
waitand put a breakpoint inside thepullback, the breakpoint is only hit after the delay, so the view isn't getting initialized until after the delay and thus thewaitis pointless here.Is this expected behaviour? Are you supposed to do something differently for
waitwhen usingpullbackin aSnapshottingextension?Beta Was this translation helpful? Give feedback.
All reactions