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

Add support for Opacity, Position, Scale, and Rotation value providers #2047

Merged
merged 3 commits into from
Apr 26, 2023

Conversation

calda
Copy link
Member

@calda calda commented Apr 26, 2023

This PR adds support for Opacity, Position, Scale, and Rotation value providers to the Core Animation rendering engine. Previously it only supported Color value providers. Fixes #1837. Fixes #2042.

}

func setupLayerAnimations(context: LayerAnimationContext) throws {
let context = context.addingKeypathComponent(baseLayerModel.name)
let transformContext = context.addingKeypathComponent("Transform")
Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed an issue where we were:

  1. incorrectly appending the layer name twice in the path
  2. missing "Transform" from the path

For example, "H1.Transform.Scale" was incorrectly using "H1.H1.Scale" previously.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch!

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.

Nice!

}

func setupLayerAnimations(context: LayerAnimationContext) throws {
let context = context.addingKeypathComponent(baseLayerModel.name)
let transformContext = context.addingKeypathComponent("Transform")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch!

@calda calda merged commit 7ca907b into master Apr 26, 2023
@calda calda deleted the cal--more-value-providers branch April 26, 2023 22:24
iago849 pushed a commit to atteamapps/lottie-ios that referenced this pull request Feb 8, 2024
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
2 participants