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

Fix imageView animation for bounds change #16

Merged
merged 1 commit into from
Jan 6, 2017
Merged

Conversation

lkzhao
Copy link
Collaborator

@lkzhao lkzhao commented Jan 5, 2017

Before & After:

Fix #10!

Before this patch, imageViews are treated equally with all the other views.
Snapshots are taken before animation starts. During the animation the image will be distorted if their bounds change. Even though the cross fade effect reduce the noticeability, it is still a bit rough.

With this patch. ImageView transitions is smoother. ContentModes like aspectFill is being enforced even during animations.

I also added another non-square image into the examples to test and demonstrate this.

@lkzhao lkzhao force-pushed the content-mode-fix branch 2 times, most recently from c527846 to 8135091 Compare January 5, 2017 07:17
@lkzhao lkzhao merged commit a884888 into master Jan 6, 2017
@lkzhao lkzhao deleted the content-mode-fix branch February 9, 2017 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant