HeroTransitions / Hero

Elegant transition library for iOS & tvOS
https://HeroTransitions.github.io/Hero/
MIT License
22.02k stars 1.72k forks source link

Inconsistently alpha of first object doesn't fade in transition #710

Open nightfall708 opened 3 years ago

nightfall708 commented 3 years ago

What did you do?

Simple transition between two view controllers, with one object with the same heroID.

What did you expect to happen?

Consistent smooth transitioning

What happened instead?

1 out of 4 transitions doesn't work well (supposedly randomly) as the first view's alpha stays 1.0 until the very last frame of the transition, instead of decreasing to 0.

General Information

Demo Project

n/a yet

nightfall708 commented 3 years ago

Apparently https://github.com/HeroTransitions/Hero/issues/654 solves the issue. This is probably because my first object has a background layer.

nightfall708 commented 3 years ago

I ended up adding modifier forceNonFade and setting the alpha to 0.99, but I am not sure why yet.