-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Conversation
} | ||
|
||
func setupLayerAnimations(context: LayerAnimationContext) throws { | ||
let context = context.addingKeypathComponent(baseLayerModel.name) | ||
let transformContext = context.addingKeypathComponent("Transform") |
There was a problem hiding this comment.
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:
- incorrectly appending the layer name twice in the path
- missing "Transform" from the path
For example, "H1.Transform.Scale"
was incorrectly using "H1.H1.Scale"
previously.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
There was a problem hiding this 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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
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.