Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support animating shared elements on pop #6385

Merged
merged 22 commits into from
Jul 13, 2020
Merged

Support animating shared elements on pop #6385

merged 22 commits into from
Jul 13, 2020

Conversation

guyca
Copy link
Collaborator

@guyca guyca commented Jul 12, 2020

This PR introduces support to run shared element transition animations on stack pop.

guyca added 19 commits July 8, 2020 10:44
Create ElementTransitions when creating SharedElementAnimator, not before.
* Set correct bounds on the image being animated
* Set focus point so animating different scale types looks as expected
* Remove white background
* Fix title being clipped during return transition
Images flickered sometimes when popping with SET
We're not cleaning up properly after our selves and the Interpolating ScaleType remains on the image. Since this scale type is a decorator, when the decoration chain grows our of hand the animation starts to lag.
Avoid searching for transition views in both appearing and disappearing ViewControllers
@guyca guyca merged commit 80a52a2 into master Jul 13, 2020
@guyca guyca deleted the setPop branch July 13, 2020 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants