-
Notifications
You must be signed in to change notification settings - Fork 5
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 foreach dynamic properties manipulation #9
Comments
There is no support for ** currently. Only named fills |
@alexzhirkevich I tried this layer("Layer 1 Outlines 2") {
shapeLayer("Group 1"){
fill("Fill 1") { color { color } }
}
} for animation But it still did not work |
It must be rememberLottieDynamicProperties {
shapeLayer("Layer 1 Outlines 2") {
fill("Group 1", "Fill 1") { color { Color.Red } }
}
} |
layer(path) is a path to the layer |
Thanks a lot, this did work |
It would be really nice to get |
…perties This commit enables layer path matching for dynamic properties in a similar fashion to the official Lottie library. Wildcard "*" pattern path segment matches exactly one path segment. Globstar "**" pattern path segment, matches 0, 1 or many path segments. Example usage: dynamicProperties = rememberLottieDynamicProperties { // Match "Shape Layer 4" at any depth. shapeLayer("**", "Shape Layer 4") { // Match "Fill 3" on the second level, e.g. "ABC/Fill 3" or "XYZ/Fill 3" fill("*", "Fill 3") { color { Color.Red } alpha { .5f } } } } Current limitations: only the first matching dynamic property is applied. This commit fixes alexzhirkevich#9.
What happened?
Changing color using dynamic properties is not working
This is how i did previously in lottie-android
This is how I'm doing it in compottie
What Compottie version do you experience the bug on?
2.0.0-beta01
What platforms are you seeing the problem on?
Android, iOS
Does Compottie log anythyng to the stdout / your logger set with
Compottie.logger
?No response
The text was updated successfully, but these errors were encountered: