Liquid animation freezes until view disappears and reappears.
haroutig opened this issue · 3 comments
haroutig commented
haroutig commented
It seems to only happen when updating the variable tracking progress through an environment object. I'm guessing it has to do with blocking the thread on which the timer for the animation is running, causing it to not continue the animation.
maustinstar commented
Can you post a code snippet to replicate this behavior on my end?
haroutig commented
I think i found where the problem was, it seems that when using a variable in the new view rather than passing an environmentobject and reading directly from that, swift pauses animations until you retrigger them (in this case, leaving the view and coming back). No idea why this happens, may be a bug in swift or something i was doing wrong...