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 issue where animation with negative stroke offset would render incorrectly #1698

Merged
merged 4 commits into from
Aug 4, 2022

Conversation

calda
Copy link
Member

@calda calda commented Aug 4, 2022

This PR fixes an issue where negative stroke offsets would render incorrectly. It looks like Core Animation doesn't support this, so we have to manually shift all of the offset values to be positive.

Before After
Simulator Screen Shot - iPhone 12 Pro Max - 2022-08-04 at 09 19 17 Simulator Screen Shot - iPhone 12 Pro Max - 2022-08-04 at 10 01 14

Copy link
Collaborator

@erichoracek erichoracek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@calda calda merged commit 9573f2d into master Aug 4, 2022
@calda calda deleted the cal--negative-trim-offset branch August 4, 2022 19:55
calda added a commit that referenced this pull request Nov 28, 2022
calda added a commit that referenced this pull request Dec 1, 2022
MoroziOS pushed a commit to MoroziOS/tmg-lottie-ios that referenced this pull request May 22, 2024
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.

None yet

2 participants