Closed cloxnu closed 1 year ago
It may be caused by snapshotView(afterScreenUpdates: true)
https://stackoverflow.com/a/35182128/8220957
Stack OverflowI am trying to perform an animation on a label where a flip animation happens and after it is done and after a delay, The text of the label changes. It seems that the delay never happens. The text
HeroModifier useScaleBasedSizeChange
can solve this.
What did you do?
What did you expect to happen?
Transition vc1's view to vc2's view by size and position after 0.5s delay.
What happened instead?
Size changes with no delay, and position changes with delay.
https://user-images.githubusercontent.com/33758521/188190980-3cdb12f5-15ab-4b96-952c-fc510f0dcc47.mov
General Information
Hero Version: develop branch
iOS Version(s): 15.5
Swift Version: 5.6
Devices/Simulators: iPhone 13 Pro
Reproducible in Examples? (Yes/No): Yes
Demo Project
HeroDemo.zip